Skip to content

[folding] Please do not call setHiddenAreas on each model change! #3261

@alexdima

Description

@alexdima

Just noticed some scrollLeft jumping around when editing near the end of lines that are scrolled.
It jumps around because I reset the cached max line width on a view model flush event.
It is really unexpected to get on each type a view model flush, almost the entire view is trashed away!.

I noticed the folding permanently calls setHiddenAreas after each model change. This is not good.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-foldingEditor code folding issuesimportantIssue identified as high-priorityverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions