Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal search gives up after only 1000 search highlights #230365

Open
jrieken opened this issue Oct 3, 2024 · 4 comments
Open

Terminal search gives up after only 1000 search highlights #230365

jrieken opened this issue Oct 3, 2024 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities perf terminal-find Relating the terminal's find widget upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Oct 3, 2024

  • run a script that prints TRIES n
  • search for regex TRIES \d
  • scroll around a little
  • 🐛 search matches aren't reliable
Screenshot 2024-10-03 at 09 34 55
@Tyriar
Copy link
Member

Tyriar commented Oct 3, 2024

This works similar to the editor, we give up registering highlights when a threshold is reached. Terminal is 1000 atm, I think the editor was upped to 20k recently:

Image

I'll have a look at how expensive this is and see if we can do better.

@Tyriar Tyriar added the terminal-find Relating the terminal's find widget label Oct 3, 2024
@Tyriar Tyriar added this to the October 2024 milestone Oct 3, 2024
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug perf labels Oct 3, 2024
@Tyriar
Copy link
Member

Tyriar commented Oct 3, 2024

Limit is defined here:

export const enum XtermTerminalConstants {
SearchHighlightLimit = 1000
}

@Tyriar
Copy link
Member

Tyriar commented Oct 3, 2024

Created upstream help wanted issues: xtermjs/xterm.js#5177, xtermjs/xterm.js#5176

@Tyriar Tyriar added upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream help wanted Issues identified as good community contribution opportunities labels Oct 3, 2024
@Tyriar Tyriar modified the milestones: October 2024, Backlog Oct 3, 2024
@Tyriar Tyriar changed the title Bad search highlights Terminal search gives up after only 1000 search highlights Oct 3, 2024
@jrieken
Copy link
Member Author

jrieken commented Oct 3, 2024

I think a bit difference is that the editor stops at a well defined point, after N items. The terminal seems to skip over some in the middle which makes it appear bugged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities perf terminal-find Relating the terminal's find widget upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

2 participants