You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Selecting text highlighting in large files silently drops highlighting of occurrences #173983
In a large text file with many occurances of the same text (example: tsFsLog.txt)
Go to the bottom of the file and select a common string (node_modules in my example)
Bug
Occurrences at the top are highlighted but occurrences of the same text lower in the file, including in the current view area, are not. There is no feedback about these highlights being dropped
VS Code version: Code - Insiders 1.76.0-insider (Universal) (853b32b, 2023-02-09T05:23:48.935Z)
OS version: Darwin x64 22.3.0
Modes:
Sandboxed: Yes
System Info
Item
Value
CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
changed the title [-]Selecting text highlighting in large files does silently drops highlighting[/-][+]Selecting text highlighting in large files silently drops highlighting of occurrences[/+]on Feb 9, 2023
We have a limit of 1000 selection highlights for performance reasons. The selection highlights are not explicitly triggered like e.g. find results and there is always the high likelihood of having very many, like for example when selecting the letter a in a very large document.
We have a limit of 1000 selection highlights for performance reasons. The selection highlights are not explicitly triggered like e.g. find results and there is always the high likelihood of having very many, like for example when selecting the letter a in a very large document.
However, as mentioned in the bug report marked as duplicate, when performing a CTRL-F search there is no problem whatsoever highlighting all matches throughout the entire file no matter how large. It appears this limit has been erroneously and superfluously implemented and needs removing. Files can easily contain thousands of lines and highlighting is extremely necessary.
Coming up to 3 years with this bug...
Activity
[-]Selecting text highlighting in large files does silently drops highlighting[/-][+]Selecting text highlighting in large files silently drops highlighting of occurrences[/+]alexdima commentedon Feb 25, 2023
We have a limit of 1000 selection highlights for performance reasons. The selection highlights are not explicitly triggered like e.g. find results and there is always the high likelihood of having very many, like for example when selecting the letter a in a very large document.
JBES commentedon Dec 18, 2025
However, as mentioned in the bug report marked as duplicate, when performing a CTRL-F search there is no problem whatsoever highlighting all matches throughout the entire file no matter how large. It appears this limit has been erroneously and superfluously implemented and needs removing. Files can easily contain thousands of lines and highlighting is extremely necessary.
Coming up to 3 years with this bug...
RedCMD commentedon Dec 29, 2025
vscode/src/vs/editor/common/model/textModel.ts
Line 124 in 7af6f94
vscode/src/vs/editor/contrib/multicursor/browser/multicursor.ts
Line 835 in 7af6f94