-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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 Editor still has 10000 line limit when search.maxResults is set to a value larger than 10000 #129153
Comments
(Experimental duplicate detection) |
Accidentally already created a walkthrough of how to resolve this in #128661 so I'll post it here: To reproduce, set the max results setting to some larger value, and run a search in the search editor which has more results than the value: You can start by changing the limit passed here to read from the
Then, you should add a way for the search to be re run with no limit. See what happens in the search from the sidebar, whose code is here: https://github.com/microsoft/vscode/blob/1fc68f3cf274141942b424894645a4f7096ec1f1/src/vs/workbench/contrib/search/browser/searchView.ts#L0-L1 for how to make that change. |
Hello, @JacksonKearl , I would like to work on this issue. As-is: Search Editor has maxResults fixed to 10000 Am I understading the issue correctly? |
@vlwkaos yes that is correct. Thanks! |
Hey @vlwkaos, have you started working on this? If not, I'm interested on picking it up. |
@Nirajn2311 I've been busy so I have not done much, so you can pick it up. I realized it requires more time than I previously expected. As far as I see, making search editor to rerun the search results with polling like the search view requires some work... |
It is by design that the search editor does not stream results, this causes undesirable behavior in an editor context when you may be in the process of manipulating the results. For this ticket simply respecting the |
In that case, I have just done that, however, I still need to resolve what to do when the maxResult is null, because the editor will hang and crash. What would you suggest I do? |
It's cool, I'll pick up another issue. |
Issue Type: Bug
"10000 results - 1 file
The result set only contains a subset of all matches. Be more specific in your search to narrow down the results." and only 10000 results shown in search editor
VS Code version: Code 1.58.0 (2d23c42, 2021-07-08T06:54:55.083Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: Yes
Remote OS version: Linux x64 4.15.0-136-generic
A/B Experiments
The text was updated successfully, but these errors were encountered: