Skip to content

Conversation

@dmitrivMS
Copy link
Contributor

Fixes #43928

Copilot AI review requested due to automatic review settings December 21, 2025 14:13
@dmitrivMS dmitrivMS added the search Search widget and operation issues label Dec 21, 2025
@dmitrivMS dmitrivMS self-assigned this Dec 21, 2025
@dmitrivMS dmitrivMS enabled auto-merge December 21, 2025 14:13
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 21, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements functionality to automatically dismiss the selected search result highlight when the user moves the cursor in the editor. It addresses issue #43928 by adding cursor position monitoring that clears the highlight upon detecting cursor movement.

Key changes:

  • Imports MutableDisposable to manage the lifecycle of the cursor position listener
  • Adds a cursor position listener that monitors the active editor and clears the search match highlight when the cursor moves
  • Sets up the listener to be recreated whenever the active editor changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

search Search widget and operation issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The bgcolor of selected text in highlighted search keyword is not different from the highlight color

3 participants