alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.7k stars 163 forks source link

Hi Alessandro, your extension is so helpful but i experment tag messing around (tag jump to over line) as soon as i reopen vs code so i have to manually relabel each line which is a bit annoying and time wasting[BUG] - #359

Closed DamienAlb closed 3 years ago

DamienAlb commented 3 years ago

Environment/version

Steps to reproduce

DamienAlb commented 3 years ago

Hi Alessandro, your extension is so helpful. Unfortunately I am currently experiencing tags messing (tag jump to over line messing with label) as soon as I re-open vs code so I have to manually relabel each line which is a bit time consumming. Do you have heard aboput this issue already ? - Extension : V 12.0.0 VS Code : V 1.51.1 OS : Elementary OS 5.1.7 Hera

alefragnani commented 3 years ago

Hi @DamienAlb ,

I'm not sure I understand your scenario. Are you saying the Labeled bookmarks are losing its Labels when you reopen VS Code? But the bookmark position (line and column) remains correct?

If that is the case, no, I never heard about it.

If not, could you provide more details about the issue?

Hope this helps

DamienAlb commented 3 years ago

Hope this be more explicit, a bookmark attach to a comment for example doesn't stick in a ccs file to the comment when a bunch of code is added. So i have to remove and retag bookmark to the correct line.

alefragnani commented 3 years ago

You are probably facing a Formatter related issue.

If you have Formatters like Prettier, or anything that runs on save, the extension doesn't recognizes all the changes, so until properly handled, you should try to use the workaround defined in #118 ("bookmarks.useWorkaroundForFormatters": true)

The downside, the bookmarks will be glued to the line number, not the line content.

Hope this helps

alefragnani commented 3 years ago

If you don't use Formatters, maybe you are facing a undo issue, reported in #116.

Hope this helps

alefragnani commented 3 years ago

I'm closing this issue because no new comments has been made since my last question. Feel free to reopen/comment if the error still occurs.