Skip to content

Commit 6115f6c

Browse files
authored
Git - add autoClosingPairs to git language definitions (microsoft#201060)
1 parent 4847e00 commit 6115f6c

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

extensions/git-base/languages/git-commit.language-configuration.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,14 @@
77
["{", "}"],
88
["[", "]"],
99
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}" },
13+
{ "open": "[", "close": "]" },
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
17+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
18+
{ "open": "/**", "close": " */", "notIn": ["string"] }
1019
]
11-
}
20+
}

extensions/git-base/languages/git-rebase.language-configuration.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,14 @@
77
["{", "}"],
88
["[", "]"],
99
["(", ")"]
10+
],
11+
"autoClosingPairs": [
12+
{ "open": "{", "close": "}" },
13+
{ "open": "[", "close": "]" },
14+
{ "open": "(", "close": ")" },
15+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
17+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
18+
{ "open": "/**", "close": " */", "notIn": ["string"] }
1019
]
11-
}
20+
}
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
22
"comments": {
33
"lineComment": "#",
4-
}
4+
},
5+
"autoClosingPairs": [
6+
{ "open": "{", "close": "}" },
7+
{ "open": "[", "close": "]" },
8+
{ "open": "(", "close": ")" },
9+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
10+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
11+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
12+
{ "open": "/**", "close": " */", "notIn": ["string"] }
13+
]
514
}

0 commit comments

Comments
 (0)