Suggestion: tsconfig.*.json should be detected as jsonc. Fixes #50974

This commit is contained in:
Martin Aeschlimann 2018-06-06 16:26:25 +02:00
parent 13471d3b4b
commit 0814ab46f7
2 changed files with 20 additions and 3 deletions

View file

@ -56,9 +56,7 @@
"settings.json",
"launch.json",
"tasks.json",
"keybindings.json",
"tsconfig.json",
"jsconfig.json"
"keybindings.json"
],
"configuration": "./language-configuration.json"
}

View file

@ -36,6 +36,17 @@
".tsx"
],
"configuration": "./language-configuration.json"
},
{
"id": "jsonc",
"filenames": [
"tsconfig.json",
"jsconfig.json"
],
"filenamePatterns": [
"tsconfig.*.json",
"tsconfig-*.json"
]
}
],
"grammars": [
@ -91,6 +102,14 @@
"fileMatch": "tsconfig.*.json",
"url": "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
},
{
"fileMatch": "tsconfig-*.json",
"url": "./schemas/tsconfig.schema.json"
},
{
"fileMatch": "tsconfig-*.json",
"url": "https://schemastore.azurewebsites.net/schemas/json/tsconfig.json"
},
{
"fileMatch": "tsconfig.*.json",
"url": "./schemas/tsconfig.schema.json"