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

[FR] Region Support #43

Closed
Servinjesus1 opened this issue Jul 2, 2023 · 1 comment
Closed

[FR] Region Support #43

Servinjesus1 opened this issue Jul 2, 2023 · 1 comment

Comments

@Servinjesus1
Copy link

Requests to get regions (manual code folding breakpoints) to show up in the VSCode outline are being ignored. It would be incredible if this plugin implemented this instead.

For the large python scripts I work on, for example, I have lots of symbols being defined and sections I am trying to refactor, but aren't yet refactored into their own functions. While I work on that, being able to add #region Code Does This and #endregion around certain blocks can help me separate steps.

In Outline Map, it would be awesome if those regions showed up in the outline underneath the function they are a part of, and the symbols within that region showed up as symbols underneath the region. Additionally, regions within regions would be underneath their parent regions.

I'm not sure how to handle regions people put that start in one context and end in another (like start before a function and end within that function), maybe by default the region becomes the parent since it began above the function it ends in? That will have to be something we think about, but for a first attempt, just showing regions in the outline map would be incredible.

Gerrnperl added a commit that referenced this issue Oct 13, 2023
- region and tag symbols
- syntax highlight for region and tag symbols
- foldingRange for region symbols
@Gerrnperl
Copy link
Owner

Thanks for your advice.

I had always thought that this feature will require a lot of work and should be completed by other extensions.

But no matter what, I have now implemented this feature.

Screenshot_20231013_201509

In theory, this feature now works in all languages.

I will release this version after some modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants