Use mime types from server spec for language detection #190
Labels
enhancement
New feature or request
package:jupyterlab-lsp
schema
changes to contract between server, client, and extensions
Elevator Pitch
If available, use the mime types provided by specs to detect languages rather than (just) string parsing or lookup tables.
Motivation
#189 points out a case where a language doesn't (yet) have a well-defined language type (robots-from-jupyter/robotkernel#40).
Design Ideas
In addition to the lookup table of languages, detection should also consult the server spec mime types.
It may be that we need to open this up even wider, and allow for server specs to offer the full rosetta stone of
mimetype
,codemirror_mode
andname
, depending on how much information might be available.The text was updated successfully, but these errors were encountered: