dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.83k stars 654 forks source link

Go to definition for non-source symbol shows MAS, not decompilation #5761

Open mikadumont opened 1 year ago

mikadumont commented 1 year ago

C# Extension Version: C# Dev Kit Extension Version:

Steps to reproduce:

  1. Open OrchardCore, BackgroundTaskScheduler.cs
  2. Navigate to definition on CrontabSchedule.Parse (line 41)

In VS this shows a decompilation: image

In C# Dev Kit this shows MAS: image

fh-yuxiao-zeng commented 10 months ago

When can we get this fixed? The lack of decomplication is the biggest blocker for us to adopt the new C# extension. It makes it very inefficient to navigate into library code.

DaveMcCrady commented 9 months ago

@fh-yuxiao-zeng I agree. As a workaround, to properly navigate to project references, I have to temporarily

  1. Disable the "C# Dev Kit" plugin. Which disables dependant plugins (MAUI). (reload required)
  2. Right-click "Go To Definition", navigate to the source file as expected, then complete the task.
  3. When done, re-enable the "C# Dev Kit" plugin and the dependant plugins. (reload required)

This applies to all Project References

Number-3434 commented 4 months ago

This would be very useful for me, as I'm using Unity, and I regularly need to figure out how something is implemented.