fix(json): jsonc is considered JSON instead of JSON5 (#4374)

* fix(json): jsonc in consider JSON instead of JSON5

* feat: add json5 id
master
Ika 2018-04-27 00:09:36 +08:00 committed by GitHub
parent c37861d08b
commit 9cc5d4f162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ const languages = [
"mcmod.info" "mcmod.info"
], ],
linguistLanguageId: 174, linguistLanguageId: 174,
vscodeLanguageIds: ["json"] vscodeLanguageIds: ["json", "jsonc"]
}, },
{ {
name: "JSON5", name: "JSON5",
@ -160,7 +160,7 @@ const languages = [
extensions: [".json5"], extensions: [".json5"],
filenames: [".babelrc"], filenames: [".babelrc"],
linguistLanguageId: 175, linguistLanguageId: 175,
vscodeLanguageIds: ["jsonc"] vscodeLanguageIds: ["json5"]
} }
]; ];

View File

@ -547,7 +547,7 @@ exports[`CLI --support-info (stdout) 1`] = `
\\"parsers\\": [\\"json\\"], \\"parsers\\": [\\"json\\"],
\\"since\\": \\"1.5.0\\", \\"since\\": \\"1.5.0\\",
\\"tmScope\\": \\"source.json\\", \\"tmScope\\": \\"source.json\\",
\\"vscodeLanguageIds\\": [\\"json\\"] \\"vscodeLanguageIds\\": [\\"json\\", \\"jsonc\\"]
}, },
{ {
\\"aceMode\\": \\"css\\", \\"aceMode\\": \\"css\\",