RandomFractals / vscode-snippets-viewer

Snippets viewer for VSCode
https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.snippets-viewer
GNU General Public License v3.0
9 stars 1 forks source link

List of language names #71

Closed lonix1 closed 3 years ago

lonix1 commented 3 years ago

Is there a list of language names somewhere?

For example, I have something called "HTML (Eex)". I don't know what it is, or its language code, so I can't disable it with snippets.viewer.skipLanguageSnippets. I looked on the official list but its not there.

Thanks for this excellent extension!

RandomFractals commented 3 years ago

@lonix1 The language identifiers document you referenced is a good source for the supported languages in vscode.

Extensions can create grammars and snippets for new or modified languages ,HTML (Eex) in your case. Most likely you had it added via some html templating extension. You would have to find the source of the extension that contributes those snippets and see what they use for language identifier. Snippets viewer does list what extensions snippets are loaded from.

I hope that helps. There is no encompassing language list in vscode and it all depends on what language packs and extensions you have installed.

lonix1 commented 3 years ago

Thanks for explaining. It seems it comes from this extension.

Strangely though, it's no longer installed. Does the extension check whether the grammar/snippet is still installed?

RandomFractals commented 3 years ago

@lonix1 this extension only loads snippets from what you see in your vscode installed extensions tab :slightly_smiling_face:

lonix1 commented 3 years ago

Aaah so that other extension's been naughty, got it! :wink:

Love this extension BTW, thanks for making/maintaining it!

RandomFractals commented 3 years ago

Thanks @lonix1! Please post a review in VS marketplace if you really like it and how you use it, so other devs can learn about it too.

https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.snippets-viewer&ssr=false#review-details

lonix1 commented 3 years ago

done! :)