StarlaneStudios / vscode-comment-anchors

⚓A Visual Studio Code extension that adds support for comment anchors 🔭
https://marketplace.visualstudio.com/items?itemName=ExodiusStudios.comment-anchors
MIT License
212 stars 33 forks source link

Section problems #191

Open yalcomania opened 1 year ago

yalcomania commented 1 year ago

Firstly, thanks for great extension. I am having problems with sections.

1- It would be great to see all anchors in quick navigation. My main code includes two main section and I am only seeing two entries on quick nav. 2- Cusrsor position doesn't work either on sections. It just positioned under section and ignores anchors inside it.

Thank you.

lulufredo commented 1 year ago

Wanted to second item #2 and provide more details.

When "Show Cursor" is enabled, it only works properly within a section if the section doesn't have closing tags (i.e., if there's no /! SECTION/.

You can see in the working screenshot that the section has a ? for the end line, and the cursor indicator is correctly positioned next to the section selected. working

Here the section has a start and end line, but the cursor indicator, instead of being near the middle (given the line number, 2744), it's at the bottom/end of the section anchors. notworking

Fred-Vatin commented 1 month ago

Problem 1 seems to be a duplicate of #223. The second problem can be related to #123 and #124