Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving code does not move annotation #35

Open
capricorncyber opened this issue Oct 20, 2021 · 2 comments
Open

Moving code does not move annotation #35

capricorncyber opened this issue Oct 20, 2021 · 2 comments

Comments

@capricorncyber
Copy link

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.

@thamara
Copy link
Owner

thamara commented Oct 22, 2021

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.

@dokmanc
Copy link

dokmanc commented Jan 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants