From 4abf6229d4f8e0bac4c7ca8bb2dc3f4a87c6e3d5 Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Thu, 22 Feb 2024 07:37:34 -0500 Subject: [PATCH] Restore auto-closing braces and parentheses (#1316) --- src/languageConfiguration.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/languageConfiguration.ts b/src/languageConfiguration.ts index 0c3f903d..abcbec22 100644 --- a/src/languageConfiguration.ts +++ b/src/languageConfiguration.ts @@ -18,6 +18,21 @@ export function getLanguageConfiguration(lang: string): vscode.LanguageConfigura close: "*/", notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx], }, + { + open: "{", + close: "}", + notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx], + }, + { + open: "(", + close: ")", + notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx], + }, + { + open: '"', + close: '"', + notIn: [vscode.SyntaxTokenType.Comment, vscode.SyntaxTokenType.String, vscode.SyntaxTokenType.RegEx], + }, ], onEnterRules: lang == "objectscript-class"