microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
228 stars 12 forks source link

[BUG] Fix going to definition or implementation #1444

Open petro2050 opened 1 month ago

petro2050 commented 1 month ago

Describe the Issue

I frequently get "no definition found for" or "no implementation found for" errors when I right click a type and try to go to definition or implementation. I have a mono repo with 30+ projects. I'm not sure if this is because VSCode cannot scale or Dev Kit / language server is just bad. This is a very poor development experience.

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

No response

jmrpineda commented 1 month ago

I faced this issue too, using C# dev kit v.1.10.16, The fix is to downgrade the dev kit to v.1.9.55, and... there is! thats works for me.

please, confirm this fix your issue, at least until dev-team can fix that.

phil-allen-msft commented 1 month ago

@petro2050 , in order to help us route this issue, can you let us know what file extensions you are seeing the errors in "go to implementation" and "go to definition"?

petro2050 commented 1 month ago

They are happening in .cs files. The issue frequently happens when I save changes in a file or when I rename a file. I also lose keyword highlighting in the editor.

github-actions[bot] commented 1 month ago

@phil-allen-msft, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.

dibarbet commented 3 weeks ago

The next time you hit this issue:

  1. Could you collect the 'C#' output window logs as described here - https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#collecting-general-logs
  2. Could you verify that the file you have open is recognized as part of the solution? See https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#project-loading-problems for how to check