-
Notifications
You must be signed in to change notification settings - Fork 35
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
csharp-ls seems to conflate definition with implementation? #4
Comments
Looking at the code that does indeed seem to be the case: csharp-language-server/src/CSharpLanguageServer/Server.fs Lines 685 to 686 in 242409a
|
Yeah, that was a cheap shot on my part to get something working but I didn’t get that much into semantic differences to realize it’s a bad idea :) |
Fair enough. But IMO it's probably better/more correct to not advertise the "find implementation" capability until that is sorted out. What do you think? |
oh definitely |
Not sure if this is the fault of
csharp-ls
or not, but it seems like a good place to start 😄Consider the following c# code:
When positioning the cursor at
IDemo
(line 6) and selecting (in Emacs)lsp-find-definition
I'm taken to line 1, where the interface is defined. This makes sense.However when I use
lsp-find-implementation
atIDemo
(line 1), I expect to be given the implementations of that interface (line 6). Instead the behaviour seems to be just likelsp-find-definition
, and I remain at line 1.Are these two functions implemented the same way inside
csharp-ls
? Or is this alsp-mode
issue? Or have I simply misunderstood something about what the current C# LSP providers are capable of?The text was updated successfully, but these errors were encountered: