microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.05k stars 29.21k forks source link

Document language type #90

Closed cfjedimaster closed 8 years ago

cfjedimaster commented 8 years ago

On this page, https://code.visualstudio.com/docs/extensionAPI/activation-events, specifically: activationEvents.onLanguage

How does one determine the string that is valid for onLanguage? For example, in my CSS file, would I use:

css CSS stylesheet

etc?

jrieken commented 8 years ago

That isn't a finite list but depends on the installed extensions. Use languages.getLanguages (https://code.visualstudio.com/docs/extensionAPI/vscode-api#_languages) to get a list of all installed languages

cfjedimaster commented 8 years ago

Fair enough, but could the docs mention that?

On Thu, Nov 19, 2015 at 1:51 AM, Johannes Rieken notifications@github.com wrote:

That isn't a finite list but depends on the installed extensions. Use languages.getLanguages ( https://code.visualstudio.com/docs/extensionAPI/vscode-api#_languages) to get a list of all installed languages

— Reply to this email directly or view it on GitHub https://github.com/Microsoft/vscode/issues/90#issuecomment-158006992.

Raymond Camden, Developer Advocate for MobileFirst at IBM

Email : raymondcamden@gmail.com Blog : www.raymondcamden.com Twitter: raymondcamden