Enable json language support for code-snippets files (#204090)

* Enable json language support for `code-snippets` files

* fix

* snippets as a known language to the json language server

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
This commit is contained in:
RedCMD 2024-02-06 03:56:16 +13:00 committed by GitHub
parent 125c21d0b4
commit 212e24f4db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -40,8 +40,10 @@ export function getLanguageParticipants(): LanguageParticipants {
languages = new Set();
languages.add('json');
languages.add('jsonc');
languages.add('snippets');
comments = new Set();
comments.add('jsonc');
comments.add('snippets');
for (const extension of extensions.allAcrossExtensionHosts) {
const jsonLanguageParticipants = extension.packageJSON?.contributes?.jsonLanguageParticipants as LanguageParticipantContribution[];

View file

@ -15,7 +15,8 @@
"icon": "icons/json.png",
"activationEvents": [
"onLanguage:json",
"onLanguage:jsonc"
"onLanguage:jsonc",
"onLanguage:snippets"
],
"main": "./client/out/node/jsonClientMain",
"browser": "./client/dist/browser/jsonClientMain",