-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Move to the current line the source file being annotated #2
Comments
Yeah it would be nice if we have this especially when you work on a large file. |
If I add this in the html, I can open annotation view already scrolled to the specified var selector = '.line:nth-of-type(' + lineNumber + ')';
window.scrollTo(0, document.querySelector(selector).offsetTop) But because the html view doesn't retain its scroll position, if you set the initial line to
Although it's not great, I think it's better to always show at the top of the annotation view rather than to show at line It happens with Markdown Preview page as well. If I leave and come back to the preview, scroll position goes back to the page top. It retains the scroll position if you open the preview along with the markdown editor. I need to check if it's intended/ideal behaviour in vscode issues. |
By the way, at this timing, the |
Yeah this would be super useful (and thanks for the great extension as is!) |
This is fixed in VS Code 1.21! So the original request can be implemented. |
@ryu1kn any updates on this ? |
When invoked, annotate should travel to the line number the cursor currently resides on in the source file annotate was invoked upon.
The text was updated successfully, but these errors were encountered: