-
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-Worspace: no more different substrings/duplicates in search result #7990
Conversation
if (searchId) { | ||
this.searchService.cancel(searchId); | ||
} | ||
this.cancelIndicator = undefined; |
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.
Problem was, that this handler was sometimes called after a new cancelIndicator was already created and so immediately set it back to undefined, which then caused that earlier tokens never got cancelled.
The link does not work. |
Thanks! Obviously I expected too much and tested the comment too less. |
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.
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Show resolved
Hide resolved
ef36e65
to
ac65a35
Compare
What it does
It solves the bug described here: #7282.
TL;DR: Sometimes one had different substrings in the search results and so one line shown more than once.
Fixes #7282
How to test
Type into the search box a search term and keep typing while the search is performed in the background. E.g. search for “ContainerModule”. Stop typing and wait for the result list.
There shouldn't be any duplicates anymore.
Review checklist
Reminder for reviewers