-
Notifications
You must be signed in to change notification settings - Fork 28.8k
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
Consider a sticky scroll provider API #168428
Comments
It would be great if this could include support for all levels of indentation, like for loops and if statements. |
I have been working on multiple projects which vary language and realized that my project with Python has the sticky scroll in things like It'd be amazing to have the sticky scroll for everything. =) |
Hi, @PanzerFowst thank you for posting your concern. The lines that are stuck are determined by the the value of your setting In your case if you want to have sticky scroll everywhere, you can maybe set the setting to |
Thank you for the suggestion! Setting it to |
Setting
I cannot comment on the issues closed as duplicates myself, because the conversations are locked. |
Thank you so much for that, @aiday-mar! This is very helpful! Is there a way to set So far, I mostly like setting And yes, I do have the Python and C++ extensions installed albeit enabled in separate workspaces. |
Hi @PanzerFowst yes you can set any setting per language. You can do this as follows:
|
I am also interested in this issue, this could be really helpful for Allman-style braces, which currently just sticks as a single brace at the top of the editor when browsing the function. |
Allman-style braces current view. Source: https://www.reddit.com/r/vscode/comments/1ctegci/sticky_scroll_settings_am_i_doing_something_wrong/ |
It seems we would need this to address some issues with how sticky scroll works with the C/C++ Extension. We are switching to If a sticky scroll provider API allowed both ranges and sticky line text to be provided, that would allow us replicate what was done in Visual Studio, where multiple relevant lines of 'header' text get collapsed into the same sticky line. |
Sticky scroll works well with our language server for COBOL in general. Except for one glitch - the top level node in an outline is a program node. However each program starts like this. IDENTIFICATION DIVISION.
PROGRAM-ID <program-name> and that means that in the sticky scroll for the program node, I aways see IDENTIFICATION DIVISION line which is not very helpful. I would much rather see the second line of the program with the program name. Having a provider specifically for sticky scroll would allow us to do this. |
Today sticky scroll is mostly powered by the
DocumentSymbolProvider
API. Mostly because it falls back to folding information when not symbol provider is available. This approach is serving us well but there are cases which don't work nicely and we should consider is a "DocumentStickyScrollLinesProvider"-API, e.g one that's provides data only used for the sticky scroll featureThe text was updated successfully, but these errors were encountered: