Skip to content

Commit f1bcf97

Browse files
bors[bot]IceSentry
andauthored
Merge #10186
10186: configure colorizedBracketPairs r=matklad a=IceSentry The new bracket pair colorization feature of vscode colorizes all brackets no matter the language. In the context of rust colorizing the '<' and '>' brackets doesn't make sense most of the time, especially in match statements with math like the following screenshot. ![image](https://user-images.githubusercontent.com/8348954/132622418-2edb7580-dc72-42df-894d-682d2882c7e3.png) Currently this configuration is only possible on a language server level which is why this PR is necessary. See microsoft/vscode#132175 and microsoft/vscode#132476 for more information on the issue in vscode Co-authored-by: IceSentry <[email protected]>
2 parents 1dc4d1c + d9e4b23 commit f1bcf97

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editors/code/language-configuration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
["(", ")"],
1010
["<", ">"]
1111
],
12+
"colorizedBracketPairs": [
13+
["{", "}"],
14+
["[", "]"],
15+
["(", ")"]
16+
],
1217
"autoClosingPairs": [
1318
{ "open": "{", "close": "}" },
1419
{ "open": "[", "close": "]" },

0 commit comments

Comments
 (0)