[FR] Region Support
Closed this issue · 1 comments
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.