Closed cateyes99 closed 7 years ago
No one think the feature to give list of the implementations is essential?
Sorry, I'd meant to mark this for our backlog. This also applies to Go to Definition, which should a list of options for partial types.
@DustinCampbell
With version 1.11.0, when i press the shortcut of Go to Implementation
⌘F12, now it will pop up a window and open one implementation of the interface and shows a list of the implementations in the right hand side. So it gives the feature, nice!
But if I open the Command Palette
by pressing ⇧⌘P or F1, then type and select the Go to Implementation
command, it just takes me to one of its implementations without popping up that window so no option to select a implementation. why the shortcut works but selecting the same command doesn't? They behaviour differently though they r the same command eh?
@cateyes99: We haven't made any changes here. Any changes to this feature have likely come from VS Code itself.
@DustinCampbell right, i did downgrade C# extension to 1.10.0
in VS Code 1.13.1
, and it works the same way. This is interesting to me, VS Code now can at least recognise these implementations. Does this mean VS Code has some communication with the C# extension in terms of this info?
C# for VS Code always returns a list of implementations. If VS Code now has a better experience in the case that multiple implementations are provided, excellent!
ic, thanks.
So but somehow VS Code doesn't have consistent behaviuor for the two approaches ( through shortcut
and through Command Pallete
) i mentioned above.
I'll take a look when I have a moment, but that'd likely be a VS Code issue.
@DustinCampbell thx
I think this is a bug in the implementation of the command palette. It is sending "enter" to the vs code editor after you use "enter" to invoke the command. Filed https://github.com/Microsoft/vscode/issues/35759. @DustinCampbell I think we can close this.
Thanks for the investigation @rchande. That sounds right. Closing this one.
Environment data
dotnet --info
output:VS Code version
: 1.10.2C# Extension version
: 1.8.0Steps to reproduce
IA
, for exampleCA
andCB
IA
's method, useGo to Implementation
command to go to the implementations of it.Expected behavior
Should show a list of those concrete methods of
CA
&CB
which implementIA
, let me to select one of them to go to.Actual behavior
It just jumps directly to one of those implementations of the interface, without giving me a list of the different implementations to select which one to go to.
I actually observed that the first time it just jumped directly to
CA
, and afterward times it always jumped directly toCB
(I don't know why the first time it jumped toCA
though)