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
Create a test file, apply that syntax highlighter and type a few thousand a's
notice the increasing lag and vscode eventually giving up trying to match and just highlighting the rest of the file with the last token
(you may need to increase editor.maxTokenizationLineLength to 10,000 or so to see results)
Now remove "patterns": []
notice all lag disappearing and everything tokenizes correctly
Also notice that "patterns": [] can be empty (which would be a different bug in itself) and still causes lag
The capture group itself does need to capture something (does not happen with a empty group)
and the size of the capture text inside the group does not matter
Without "patterns": []; my machine is able to highlight almost 680,000 a's
While with patterns; it can barely highlight 6,500
Thats almost exactly 100x times faster
The text was updated successfully, but these errors were encountered:
Create a syntax highlighter with the following code:
Create a test file, apply that syntax highlighter and type a few thousand
a
'snotice the increasing lag and vscode eventually giving up trying to match and just highlighting the rest of the file with the last token
(you may need to increase
editor.maxTokenizationLineLength
to 10,000 or so to see results)Now remove
"patterns": []
notice all lag disappearing and everything tokenizes correctly
Also notice that
"patterns": []
can be empty (which would be a different bug in itself) and still causes lagThe capture group itself does need to capture something (does not happen with a empty group)
and the size of the capture text inside the group does not matter
Without
"patterns": []
; my machine is able to highlight almost 680,000a
'sWhile with
patterns
; it can barely highlight 6,500Thats almost exactly 100x times faster
The text was updated successfully, but these errors were encountered: