mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
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:
parent
125c21d0b4
commit
212e24f4db
|
@ -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[];
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue