Skip to content

"Find in Selection" toggle in text search is broken #237774

Description

@RichardJECooke

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.93.1
  • OS Version: Ubuntu 24.0.4.1

Steps to Reproduce:

  1. Enter the text below in a new document in VS Code
0000000000000000000000x00000000000000000000
00000000000x000000000000000000x000000000000
00000000000000000000x0000000000000000000000
  1. Push ctrl-f (find text)
  2. Enter x
  3. Enable the "find in selection" filter on the right of the search widget
  4. Highlight the first two lines of text

The search results say 1 result found when they should say 3.

Now disable the toggle. The highlighted text disappears! The search box shouldn't make adjustments to the text window.

Highlight all three lines and enable the toggle. Four results are found, which is correct. But highlight the first two lines again and the widget still incorrectly says four results found, not three!

This widget is broken and inconsistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bugeditor-findEditor find operations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions