-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
[folding] Code Folding in larger files slows down editor #3582
Comments
@kuechlerm Is that what you tried?
|
@aeschli Yes, but so be more specific:
Result:
Placing the cursor outside the node and then closing the large node with a mouse click sometimes seemed to have less or no lag, but I cannot reproduce that with certainty. Unfolding restores normal cursor speed. |
The problem with folding a full document to one line is that we collapse all decorators to that one line. Decorators are used for error markers, git markers, but also for tracking the folding regions. We have ideas on how to reduce the number of decorators used for folding to improve the performance of this scenario. Bur not for March. |
I created #3725. |
In 0.10.10-insider folding more than about 3000 lines of xml slows down the editor.
Specifically moving the cursor takes seconds.
Should be reproducible with
`
1
`
Addition: If the cursor is not located in the block that gets folded, there is no lag.
The text was updated successfully, but these errors were encountered: