Skip to content

[editor] Wrong current index in find widget if the number of matches is greater than 1000 #288515

@MikeWang000000

Description

@MikeWang000000

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

  • VS Code Version:
    Version: 1.108.1
    Commit: 585eba7
    Date: 2026-01-14T14:55:44.241Z
    Electron: 39.2.7
    ElectronBuildId: 12953945
    Chromium: 142.0.7444.235
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Darwin arm64 21.6.0

  • OS Version: macOS 12.7.2 (21G1974)

Steps to Reproduce:

  1. Write 1001 lines of hello to hello.txt. Open it with VS code.

    for ((i=1; i<=1001; i++)); do
        echo "hello" >> hello.txt;
    done
  2. Select hello at line 900, and press Command/Ctrl + F.

    Image

    Wrong current index in find widget if the number of matches > 1000:
    899/1001 (Wrong, should be 900/1001)

  3. Delete hello at line 1001. Then select hello at line 900, and press Command/Ctrl + F.

    Image

    No issue if the number of matches <= 1000:
    900/1000 (Correct)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-findEditor find operationsunreleasedPatch has not yet been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions