Highlighter stashes discovery of mismatched brackets in mirrorDoc[hig… #2674
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What has changed?
highlight's extension.ts stashes a flag of misplaced brackets in
mirrorDoc["highlightFoundMisplacedBrackets"]
.This change supports a property-based integration test of potential race conditions in Paredit's deleteBackward for #2611. The property is "does the user see danger-flagged brackets?"
A couple of alternative approaches (for the test of #2611) were considered.
docIsBalanced
. However, at least under the stressful circumstances of the test,docIsBalanced
sometimes does not notice unmatched parentheses highlighted by the highlighter.Addressing #2611
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)published
. (Sorry for the nagging.)Updated the.[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressingAdded to or updated docs in this branch, if appropriateTests- forthcoming for Paredit garbles while backspacing rapidly #2611npm run prettier-format
)npm run eslint
before creating your PR, or runnpm run eslint-watch
to eslint as you go).Ping @PEZ, @bpringe, @corasaurus-hex, @Cyrik