berabue / vscode-region-viewer

This extension allows you to print a list of regions in a document and select a region to navigate to the document's location.
22 stars 9 forks source link

Nested Regions? #1

Closed Allenite closed 4 years ago

Allenite commented 4 years ago

This is incredibly useful for VSC. Can you also consider adding nested regions?

Region abc

some code

Region def

some more code

endregion def

endregion abc

would ideally return this if nested:

abc

def

swift502 commented 4 years ago

I think I got it. image

It's here. https://github.com/swift502/vscode-region-viewer/commits/nesting I'll polish it up and make a PR once / if @berabue accepts my current PRs.

berabue commented 4 years ago

@Allenite

The function you want has just been released.

I would like to express my infinite gratitude to @swift502 for making this feature.

Allenite commented 4 years ago

Thank you so much @swift502 and @berabue