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
When opening a file with very long lines all Calva commands stop working.
A symptom is that even just hitting backspace stops doing what it should. Another is that the CPU gets very a lot of load.
I think this is because that the tokenizer (probably the TokenCurosr, but it could also be the Calva highlight tokenizer) locks up trying to split the line up with its regular expressions.
A ”solution” is to do what the VS Code built-in syntax highlighter does: Recognise that tokenisation will take a long time and just skip doing it then.
The text was updated successfully, but these errors were encountered:
When opening a file with very long lines all Calva commands stop working.
A symptom is that even just hitting backspace stops doing what it should. Another is that the CPU gets very a lot of load.
I think this is because that the tokenizer (probably the
TokenCurosr
, but it could also be theCalva highlight
tokenizer) locks up trying to split the line up with its regular expressions.A ”solution” is to do what the VS Code built-in syntax highlighter does: Recognise that tokenisation will take a long time and just skip doing it then.
The text was updated successfully, but these errors were encountered: