vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Go to the implementation of an interface when decompiling source code

Open cateyes99 opened this issue 2 years ago • 3 comments

VS Code version: 1.61.1 C# Extension version: 1.23.16

Currently during decompiling the source, when hitting F12, if it's a method on an interface, it just jumps to the method definition on that interface. This doesn't really help much. Especially now there are a lot dependency injection in practice, this is the case almost every time. Can it please offer us jumping to the implementation please, if there are multiple implementations, let us choose one? This is a basic function with the modern programming tech, but so desired. ☺️

cateyes99 avatar Oct 14 '21 23:10 cateyes99

Hi @cateyes99, this functionality exists today in the C# extension. In Windows you can press ctrl+F12 (and on MacOS cmd+F12) to go to implementation. The option is even available when you right-click an interface or abstract type. image

JoeRobich avatar Oct 15 '21 23:10 JoeRobich

@JoeRobich sorry, i think you missed my point. I meant that feature in decompiling source code, not in my own source code . I believe the decompiling functionality is essentially provided by ILSpy.

cateyes99 avatar Oct 16 '21 09:10 cateyes99

@JoeRobich any news on this? For us the issue arises when debugging and stepping through code that uses interfaces that are implemented in external code.

This would be an enormous time saver and really appreciated!

PhilParisot avatar Sep 15 '22 17:09 PhilParisot