Skip to content

Commit 212e24f

Browse files
RedCMDaeschli
andauthored
Enable json language support for code-snippets files (microsoft#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 <[email protected]>
1 parent 125c21d commit 212e24f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

extensions/json-language-features/client/src/languageParticipants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ export function getLanguageParticipants(): LanguageParticipants {
4040
languages = new Set();
4141
languages.add('json');
4242
languages.add('jsonc');
43+
languages.add('snippets');
4344
comments = new Set();
4445
comments.add('jsonc');
46+
comments.add('snippets');
4547

4648
for (const extension of extensions.allAcrossExtensionHosts) {
4749
const jsonLanguageParticipants = extension.packageJSON?.contributes?.jsonLanguageParticipants as LanguageParticipantContribution[];

extensions/json-language-features/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"icon": "icons/json.png",
1616
"activationEvents": [
1717
"onLanguage:json",
18-
"onLanguage:jsonc"
18+
"onLanguage:jsonc",
19+
"onLanguage:snippets"
1920
],
2021
"main": "./client/out/node/jsonClientMain",
2122
"browser": "./client/dist/browser/jsonClientMain",

0 commit comments

Comments
 (0)