-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
editor-bracket-matchingEditor brace matchingEditor brace matchingfeature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersperfverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Part of #161622
Bracket pair parsing appears to happen twice on a single keypress as it happens when content changes and when tokenization happens. Typically on simple input "cheap" tokenization runs in the same task:
Consider using a microtask to execute the parsing at the end of the task a single time (which may get deferred to later depending on the outcome of #163235), rather than eagerly during the content changed event. I haven't looked much at the code but could we do bracket matching more incrementally so it's not taking several milliseconds?
The impact of this running twice is that input latency is pushed out several milliseconds on lower end/average hardware.
RedCMD and ulcuber
Metadata
Metadata
Assignees
Labels
editor-bracket-matchingEditor brace matchingEditor brace matchingfeature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersperfverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
