Skip to content

Increase editor.stickyScroll.maxLineCount from 10 #201450

@jcarrus

Description

@jcarrus

I love the new stickyScroll feature, but I work in some codebases with very deep nesting and 10 lines of scroll nesting isn't enough. I think the default value of 5 is perfectly appropriate, but I would like the option to increase this value to something larger. 20 lines would work in my case, but since this is a configured value, perhaps something even larger (30-50) would be acceptable.

Here's an example of some test code that's hidden (note that I use either the folding or indentation providers since the outline provider isn't great for my language)

Default of 5

image

User-configured with current max of 10

image

Proposed max of 20

image

Other thoughts

10 levels should be plenty!

It should, but often times we don't control the code we have to work with. It doesn't have to be the default, but if the user wants to opt in, let's allow them.

What if it looks bad when the whole editor is covered by sticky lines?

There is already some handling to ensure that the sticky lines don't totally overrun the editor.

2023-12-23.17-42-21.mp4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions