Skip to content

F12 Go To Definition from within Provisional Tab navigates to top of file instead of specific location. #77382

@chuckries

Description

@chuckries

Version Used:
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.13.2

Steps to Reproduce:

  1. Create a new C# Console App (.NET 8)
  2. Put cursor in WriteLine of Console.WriteLine and F12 to Go To Definition
  3. You should navigate to the definition of Console.WriteLine in Console.cs that is pull from Source Link (the document tab shows [Source Link]
  4. From this definition, place cursor in the WriteLine of Out.WriteLine and F12

Expected Behavior:
Navigates to the definition of Out.WriteLine

Actual Behavior:
Navigates to the top of the file TextWriter.cs [Source Link]

Note
This only seems to repro the first time the file is pulled from Source Link. The source link cache is at %LocalAppData%\SourceServer and can be deleted to facilitate reproing this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions