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
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[];