Unnamed repository; edit this file 'description' to name the repository.
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.

Currently this configuration is only possible on a language server level which is why this PR is necessary.
See https://github.com/microsoft/vscode/issues/132175 and https://github.com/microsoft/vscode/issues/132476 for more information on the issue in vscode
Co-authored-by: IceSentry <[email protected]>
| -rw-r--r-- | editors/code/language-configuration.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/language-configuration.json b/editors/code/language-configuration.json index 382484bc74..855b9966bb 100644 --- a/editors/code/language-configuration.json +++ b/editors/code/language-configuration.json @@ -9,6 +9,11 @@ ["(", ")"], ["<", ">"] ], + "colorizedBracketPairs": [ + ["{", "}"], + ["[", "]"], + ["(", ")"] + ], "autoClosingPairs": [ { "open": "{", "close": "}" }, { "open": "[", "close": "]" }, |