Separate json and jsonc (fixes #3641, fixes #26830, fixes #19992)

This commit is contained in:
Martin Aeschlimann
2017-11-27 10:29:30 +01:00
parent 30296f6e61
commit 0c2de00043
5 changed files with 38 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
"vscode": "0.10.x"
},
"activationEvents": [
"onLanguage:json"
"onLanguage:json", "onLanguage:jsonc"
],
"enableProposedApi": true,
"main": "./client/out/jsonMain",
@@ -44,6 +44,19 @@
"application/manifest+json"
],
"configuration": "./language-configuration.json"
},
{
"id": "jsonc",
"aliases": [
"JSON with comments"
],
"filenames": [
"settings.json",
"launch.json",
"debug.json",
"keybindings.json"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
@@ -51,6 +64,11 @@
"language": "json",
"scopeName": "source.json",
"path": "./syntaxes/JSON.tmLanguage.json"
},
{
"language": "jsonc",
"scopeName": "source.json",
"path": "./syntaxes/JSON.tmLanguage.json"
}
],
"jsonValidation": [