Skip to content

Commit 182818c

Browse files
committed
Fix language-configuration schema squiggle
Switch autoClosingPairs / surroundingPairs from array tuples to the { open, close } object form (also adds notIn:["string"] on quote pairs so VS Code does not auto-close another quote inside a string). Add a $schema reference to the SchemaStore catalog (https://json.schemastore.org/language-configuration.json) so the file is validated against a real public schema instead of an inferred one.
1 parent e516e66 commit 182818c

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

language-configuration.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/language-configuration.json",
23
"comments": {
34
"lineComment": "#"
45
},
@@ -7,15 +8,15 @@
78
["(", ")"]
89
],
910
"autoClosingPairs": [
10-
["[", "]"],
11-
["(", ")"],
12-
["\"", "\""],
13-
["'", "'"]
11+
{ "open": "[", "close": "]" },
12+
{ "open": "(", "close": ")" },
13+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
14+
{ "open": "'", "close": "'", "notIn": ["string"] }
1415
],
1516
"surroundingPairs": [
16-
["[", "]"],
17-
["(", ")"],
18-
["\"", "\""],
19-
["'", "'"]
17+
{ "open": "[", "close": "]" },
18+
{ "open": "(", "close": ")" },
19+
{ "open": "\"", "close": "\"" },
20+
{ "open": "'", "close": "'" }
2021
]
2122
}

0 commit comments

Comments
 (0)