-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Find widget only highlights the first 19999/20000 matches #496
Comments
@aasierra Cool. I have found out that normal search has exactly the same issue. I see you changed the constant LIMIT_FIND_COUNT, the method findMatches will apply the same rule to the normal search (if I am not mistaken). |
@zwb1988 Yep regarding huge files at the very least I changed it to this to hopefully get things talked about. Also increasing for all search types was done intentionally to increase search limit for everything not just Regex as I am sure other users will be confused why normal searches do not match everything as well. |
@zwb1988 Although, regarding large files, the way lines are stored I believe will allow for a large amount to not have issues but when it gets large it should act the same as other text editors might. |
I can't accept the PR for the time being. The find results (from The code around decorations is not prepared to deal with decorations count in the 1M range for sure, which is something that can happen when opening a ~20MB file and searching for "a" or something... |
Starting with 587854a, all find widget operations (find next, find prev, replace, replace all) now function outside the 1k decorations limit. |
PR #36410 reimplements decorations as an interval tree and brings in a number of key optimizations around decorations. It raises the find limit from 1k to 20k. |
Sounds like the issue can close! |
Upvote. Limits should be defined as per the workspace, if required |
Please fix this |
This issue should be closed, after PR #126762 merged. |
it looks like this was implemented but the setting is not working for me #169017 |
Using the search with regular expression in the VS Code 0.10.1, it only highlights the matched items with couple hundreds of lines from the top and skips the rest of the document.
This can be done by creating an empty document and fill it up with thousands lines of text and perform a regex search.
The text was updated successfully, but these errors were encountered: