You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
document.getLanguageId() only gives the language of the document.
In case of embedded languages like css/js in html, the editor is aware of the languageId at position via getLanguageIdAtPosition. But this information is not available for extensions.
In my case, the emmet extension needs to know whether it should suggest html or css abbreviations based on the language under the cursor. Of course, I can do that by using some regex magic, but since this information is available in the editor, it would be good to make it available for extensions as well.
The text was updated successfully, but these errors were encountered:
document.getLanguageId()
only gives the language of the document.In case of embedded languages like css/js in html, the editor is aware of the languageId at position via getLanguageIdAtPosition. But this information is not available for extensions.
In my case, the emmet extension needs to know whether it should suggest html or css abbreviations based on the language under the cursor. Of course, I can do that by using some regex magic, but since this information is available in the editor, it would be good to make it available for extensions as well.
The text was updated successfully, but these errors were encountered: