vscode-code-annotation icon indicating copy to clipboard operation
vscode-code-annotation copied to clipboard

Moving code does not move annotation

Open capricorncyber opened this issue 4 years ago • 2 comments

Quite useful extension.

However, if I move the code (for example, add new lines before the annotated code), annotation is attached to the old code position, not the new one.

capricorncyber avatar Oct 20 '21 20:10 capricorncyber

Thank you for reporting this! This issue is a bit more complex than one might think. We need to figure it out how to track these changes.

thamara avatar Oct 22 '21 00:10 thamara

LineNotePlus (https://github.com/prmichaelsen/linenoteplus) had a good approach of using code comments that link to markdown notes. It was an improvement of LineNote (https://github.com/tkrkt/linenote) which, like your extension, presumably relied on line number to associate a note with a particular line of code. LineNotePlus used comments in the source as a link to the note file. This would've been great but I don't think he ever tested it on Windows as it has significant issues. There is also SideNotes (https://github.com/cyberbiont/vscode-sidenotes/issues) which took the same approach as LinenotePlus. I'd love to find a tool like LineNotePlus that actually worked.

dokmanc avatar Jan 23 '24 00:01 dokmanc