Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot "Go to definition" inside a definition #6021

Closed
Kiechlus opened this issue Aug 3, 2023 · 7 comments
Closed

Cannot "Go to definition" inside a definition #6021

Kiechlus opened this issue Aug 3, 2023 · 7 comments

Comments

@Kiechlus
Copy link

Kiechlus commented Aug 3, 2023

Steps to reproduce

  1. Disable Omnisharp and use the new LSP Server
  2. Go to definition (CTRL+Click) of any class/interface that is not from the same codebase
  3. Try to go to definition of something in this definition

Expected behavior

Should be able to go arbitrary deep into definitions. This works as soon as Omnisharp is enabled again.

Actual behavior

Doesn't do anything.

Additional context

Tried both with and withoug C# Dev Kit installed.

@eduardoscheffer
Copy link

Use v1.26.0. There is a bug on version 2

@eduardoscheffer
Copy link

csharp-extension-bug
try that

@dibarbet dibarbet self-assigned this Aug 4, 2023
@dibarbet dibarbet added this to the Next milestone Aug 4, 2023
@dibarbet
Copy link
Member

dibarbet commented Aug 4, 2023

Likely related to #5787

@dafeng
Copy link

dafeng commented Aug 4, 2023

Please try to disable the C# dev kit and intellicode for C# dev kit

@zion
Copy link

zion commented Aug 11, 2023

Had the same issue, reverting to 1.26.0 worked for me.

For anyone that isnt aware... you can set a specific version of an extension by clicking the gear icon in the extension list and clicking "install another version..."

@dibarbet
Copy link
Member

Closing as duplicate of #5787 - once that issue is resolved various language features (incl go to definition) should work better in decompiled / metadata files.

@abdulazeez761
Copy link

abdulazeez761 commented Sep 8, 2024

It's late, but I'm sure someone out there is struggling with this. Anyway, what worked for me and could work for you as well was installing an older version of the C# Dev Kit. Both the C# extension and the C# Dev Kit support 'Go to Definition,' and when you try to use the C# OmniSharp server, it won’t use the C# Dev Kit by default. The solution is to install a version of the C# Dev Kit that doesn’t conflict with other extensions. I guess they’ve been working on it, so it should be fixed soon.

the version that worked as expected for me was 1.9.55v
image
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants