Skip to content

Markdown preview does not scroll to top on new URI #164071

@dsanders11

Description

@dsanders11

Does this issue occur when all extensions are disabled?: N/A (depends on the built-in markdown extension)

  • VS Code Version: 1.72.1
  • OS Version: macOS 12.4

Steps to Reproduce:

  1. Create two Markdown documents, one with a relative link to the other, and enough content in both documents to scroll down
  2. Preview the document with the link and scroll down to the link, then click it

Expected Behavior:

The link to the other document should open the new document at the top

Actual Behavior:

The scroll position stays the same, opening the new document at a random spot in that document

Other Information:

This change is probably straightforward to make, but it would break the existing behavior. I'm struggling to imagine why that behavior would be desirable though, so not sure it would actually affect anyone in a meaningful way.

cc @mjbvz

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersmarkdownMarkdown support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions