Expose language display names to extension API #17885
Labels
api
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
languages-basic
Basic language support issues
Milestone
Currently it seems it is not possible to get the name of the language of a document in an extension. The document object contains a property
languageId
which has an internal ID for the language.vscode.languages.getLanguages()
can also be used to get all registered language IDs. There is no method to get the actual names of the languages.The editor displays the name of the language in the status bar and in the language mode menu, but the names are not exposed to extensions. Personally I am working on an extension for my web service which requires the actual language names and not the IDs.
The text was updated successfully, but these errors were encountered: