Fix Add Selection to Next Find Match with regex - #336963
Open
Nirajan Banjade (NirajanBanjade) wants to merge 2 commits into
Open
Nirajan Banjade (NirajanBanjade) wants to merge 2 commits into
Nirajan Banjade (NirajanBanjade) wants to merge 2 commits into
Conversation
Copilot started reviewing on behalf of
Nirajan Banjade (NirajanBanjade)
September 21, 2026 01:33
View session
Contributor
There was a problem hiding this comment.
Copilot review overview
Review effort: Balanced
Findings: None
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #107090
This fixes "Add Selection to Next Find Match" when regex mode is enabled.
Previously, after selecting a regex match in the editor, the multicursor session could fall back to the literal selected text instead of preserving the regex query.
This change preserves the active regex query when the current editor selection exactly matches that regex in the document.
Testing:
foo\dmatchingfoo1,foo2,foo3, andfoo4