Repository navigation
fix(editor): hide canvas fold markers when code folding is off - #3067
Conversation
[Medium impact] This PR appears safe to merge. SummaryThis PR makes canvas fold markers and gutter taps follow the code-folding setting.
No actionable issues were found. Reviews (2) · Last reviewed commit: "fix(editor): hide canvas fold markers wh..." · Reviewed by Greptile |
|
@bajrangCoder question, is it really "hidden" or just "not created"? dirt in the floor hidden under the carpet still exist. I was wondering if turning the option off benefitted to the editor performance |
Not created. With folding off the canvas skips building fold markers entirely (no per-line foldability checks, no drawing), and the gutter column is removed rather than left blank. So there’s a tiny saving, but those checks were already cheap and only ran for visible lines, so don’t expect a noticeable speed-up. As canvas-view is made just to have features without causing perf like dom one. |
Fixes #3055: with
codeFoldingoff, canvas views still drew fold markers and folded code on gutter taps.