From 5c6b93a65425291a87f932d8eb9f5a114875d7af Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Sat, 16 Dec 2017 02:45:51 +0200 Subject: [PATCH] Add "JSON with comments" to vscodeLanguageIds (#3496) --- src/support.js | 2 +- tests_integration/__tests__/__snapshots__/support-info.js.snap | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/support.js b/src/support.js index 0eb63203..6b7869c5 100644 --- a/src/support.js +++ b/src/support.js @@ -145,7 +145,7 @@ const supportTable = [ "mcmod.info" ], linguistLanguageId: 174, - vscodeLanguageIds: ["json"] + vscodeLanguageIds: ["json", "jsonc"] }, { diff --git a/tests_integration/__tests__/__snapshots__/support-info.js.snap b/tests_integration/__tests__/__snapshots__/support-info.js.snap index 1d98514c..514f61a0 100644 --- a/tests_integration/__tests__/__snapshots__/support-info.js.snap +++ b/tests_integration/__tests__/__snapshots__/support-info.js.snap @@ -197,6 +197,7 @@ Object { "tmScope": "source.json", "vscodeLanguageIds": Array [ "json", + "jsonc", ], }, Object { @@ -526,7 +527,7 @@ exports[`CLI --support-info (stdout) 1`] = ` \\"mcmod.info\\" ], \\"linguistLanguageId\\": 174, - \\"vscodeLanguageIds\\": [\\"json\\"] + \\"vscodeLanguageIds\\": [\\"json\\", \\"jsonc\\"] }, { \\"name\\": \\"Markdown\\",