-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Search in workspace improvements #6798
Conversation
c8c084c
to
899f1c9
Compare
899f1c9
to
5179060
Compare
} | ||
|
||
return a.length - b.length; | ||
return 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do the "line" and "character" not matter any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because a result contains all matches of a file
packages/search-in-workspace/src/node/ripgrep-search-in-workspace-server.ts
Show resolved
Hide resolved
5179060
to
9ee0c1f
Compare
Thanks for the feedback. I have fixed the auto collapse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the Cancel Search
toolbar item should only be visible if there is an ongoing search (with a search term present) similarly to VS Code. At the moment, the following is displayed:
Also, I believe the PR closes the following issue: #6461
- one message per file with multiple matches - long lines are not send entirely to clients - new option for max file size (defaults to 20M) Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
9ee0c1f
to
6111061
Compare
Good catch! I could only reproduce by first entering a search and then deleting it. I've fixed that. |
@vince-fugnitto @elaihau please give your approve if you are fine with changes. Right now browser UI is hanging very often it would be good to have it in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works great for me 👍
I noticed that:
- the overall performance is much better and is less likely to go offline
- my previous issue has been resolved (visibility of the
cancel
the toolbar item) - having the
cancel
toolbar item and command allows users to successfully terminate long searches - the search respects the preference
collapseResults
andlineNumbers
What it does
Improves search in workspace performance by sending less messages and avoid sending long lines entirely.
How to test
Search for something including ignored files.
Review checklist
Reminder for reviewers