We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1480e14 commit 36652cbCopy full SHA for 36652cb
src/features/jsonContribution.ts
@@ -7,10 +7,17 @@ function updateDiagnosticsOptions () {
7
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
8
comments: 'ignore',
9
validate: true,
10
- schemas: getJsonSchemas({
11
- keybindings: ['file:///keybindings.json'],
12
- 'settings/user': ['file:///settings.json']
13
- })
+ enableSchemaRequest: true,
+ schemas: [
+ ...getJsonSchemas({
+ keybindings: ['file:///keybindings.json'],
14
+ 'settings/user': ['file:///settings.json']
15
+ })!,
16
+ {
17
+ uri: 'https://json-schema.org/draft/2019-09/schema',
18
+ fileMatch: ['*.schema.json']
19
+ }
20
+ ]
21
})
22
}
23
0 commit comments