Codemirror6 has code folding snapline?

Is there a code folding snapline, or is there a code block where the snapline is displayed? This is shown in the following figure. Each collapsible block of code has a vertical line.


I don’t think an open implementation of this exists yet, but it should be possible to implement it as an extension.

Do you have any ideas or provide some guidance, I will try to develop

I’d expect this is best done as a view plugin that adds widget decorations to the lines inside the viewport that have leading indentation.

1 Like

Thank you for your answer