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

changed limitResultCount to Number.MAX_VALUE for findMatches #33573

Closed
wants to merge 1 commit into from
Closed

changed limitResultCount to Number.MAX_VALUE for findMatches #33573

wants to merge 1 commit into from

Conversation

Mischala
Copy link

@Mischala Mischala commented Aug 31, 2017

findMatches now has a much higher limit of things it will match to.
this fixed #7201
But may cause issues in searching exceedingly large files with a "bad search"

such as searching for "s" in a 400,000 line file... with each line containing 6,000 s characters

@msard-oz
Copy link

At least some kind of notification that this limitation exists should have been added. I understand that one rarely replace over a thousand instances of the same string while coding, then again, implementing RegEx, but limiting matches to 999 is just not ok. I really hope this is going to be available in the next update.

@alexdima
Copy link
Member

alexdima commented Sep 22, 2017

If only this would be so easy!

The limit is put in place to avoid UI stalls, freezes and crashes.

I am sorry that this is annoying, but removing the limit will lead to: stalls, freezes and crashes.

You can try locally to remove the limit, generate a 50MB file containing as and then you can search for a. VSCode will crash or freeze quite quickly with this change.

@alexdima alexdima closed this Sep 22, 2017
@alexdima
Copy link
Member

The extra problem about our runtime is that in OOM situations, Electron just crashes.

In other runtimes, one would be able to figure out that there is no more memory available ... and perhaps stop doing what they're doing... i.e. break the loop that finds things

@microsoft microsoft deleted a comment from msftclas Sep 26, 2017
@microsoft microsoft deleted a comment from ToMakeSense Sep 26, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Select All Occurrences" is not selecting all of matches in large files (stops at 1000)
4 participants