Skip to content
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

Test: Change the provider used for defining the sticky lines in sticky-scroll #177649

Closed
2 tasks done
aiday-mar opened this issue Mar 20, 2023 · 1 comment
Closed
2 tasks done

Comments

@aiday-mar
Copy link
Contributor

aiday-mar commented Mar 20, 2023

Refs: #177338

Complexity: 2

Create Issue


It is now possible to configure the provider which defines the lines to sticky. As of now there are three possibilities: the outline model provider, the folding model provider and the indentation model provider. Below you may find the fallbacks for each choice of provider:

outline model provider -> folding model provider -> indentation model provider
folding model provider -> indentation model provider
indentation model provider

To test this works, follow these steps:

  1. Enable sticky scroll in the settings. Enable the folding ranges (for visualization purposes).
  2. You may choose the provider by going into the settings and choosing a default provider from Editor > Sticky Scroll: Default Model.
  3. Choose the outline model provider as the default. Open a file for which there is an outline model (indicated by a non empty outline panel in the explorer). Verify the sticky lines follow closely the outline model.
  4. Choose the outline model provider as the default. Open a file for which there is no outline (indicated by an empty outline panel in the explorer). You may have to disable certain extensions that provider an outline model in VS Code. Verify that the sticky lines follow closely the folding ranges.
  5. Choose the folding model provider or the indentation model provider as the default and open a file with an outline model. Verify that the sticky lines follow closely the folding ranges, not the outline model.
@VSCodeTriageBot VSCodeTriageBot added this to the March 2023 milestone Mar 20, 2023
@aiday-mar aiday-mar changed the title Test: Sticky-scroll change provider used for defining the sticky lines Test: Change the provider used for defining the sticky lines in sticky-scroll Mar 20, 2023
@dbaeumer dbaeumer removed their assignment Mar 21, 2023
@mjbvz
Copy link
Contributor

mjbvz commented Mar 21, 2023

Works great!

@mjbvz mjbvz removed their assignment Mar 21, 2023
@mjbvz mjbvz closed this as completed Mar 21, 2023
@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants