dotnet / dotnet/roslyn

Go to definition of an extension declared in metadata leaves user at the top of the file.

Open
#83,479 1 comment 0 reactions 0 assignees View on GitHub
Area-IDE Feature - Extension Everything Go To Definition
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

**Version Used**:

**Steps to Reproduce**:

1. Call an extension declared in metadata
2. Go to the definition of the extension

I have provided a minimal reproduction in the linked repository. The file containing the extension calls is `Lib1/Class1.cs`

https://github.com/Arthri/demo-roslyn-extension-goto/

**Expected Behavior**: The user is brought to the file and line where the extension is declared.

**Actual Behavior**: The user is left at the top of the file where the extension is declared.

Contributor guide

Open the contributing guide

Research direction

Start with the minimal reproduction in the linked repository and the extension calls in Lib1/Class1.cs. Reproduce Go to Definition for an extension declared in metadata, then trace the Roslyn navigation path responsible for the destination. Done means navigation opens the file at the extension's declaration line instead of leaving the user at the top of the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.