From 4dda5e6ab4d65dd7cd51c41a6a0b227de603d5cd Mon Sep 17 00:00:00 2001 From: Phill Wolf Date: Sat, 21 Dec 2024 14:35:15 -0500 Subject: [PATCH] Highlighter stashes discovery of mismatched brackets in mirrorDoc[highlightFoundMisplacedBrackets] --- src/highlight/src/extension.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/highlight/src/extension.ts b/src/highlight/src/extension.ts index a5723e6c2..2bec219e2 100755 --- a/src/highlight/src/extension.ts +++ b/src/highlight/src/extension.ts @@ -416,6 +416,7 @@ function updateRainbowBrackets() { } } activeEditor.setDecorations(misplacedType, misplaced); + mirrorDoc["highlightFoundMisplacedBrackets"] = misplaced.length; // help tests 'see' that misplaced brackets are highlighted activeEditor.setDecorations(commentFormType, comment_forms); activeEditor.setDecorations(ignoredFormType, ignores); activeEditor.setDecorations(ignoredTopLevelFormType, topLevelIgnores);