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

GoToDefinition is not available in [metadata] files

Open chrmarti opened this issue 10 years ago • 4 comments

@Arnavion reported in Microsoft/vscode#12334:

  • VSCode Version: 1.5.2
  • OS Version: Windows 7 x64

Steps to Reproduce:

  1. Have a C# project with the content:

    class Foo
    {
        System.Collections.Generic.List<int> bar;
    }
    
  2. Invoke F12 GoToDefinition on List to be taken to the metadata file for List1 (public class List : IList...`

  3. In this file, GoToDefinition is not an option on IList<T> and pressing F12 on it does nothing.

Other language service things like tooltips are also not available.

chrmarti avatar Sep 20 '16 21:09 chrmarti

Anything new about this? I still cannot see "GoToDefinition" for IList on [metadata] List`1. I use VS Code 1.13.1 and C# extension 1.11.0

gbrantzos avatar Jul 02 '17 18:07 gbrantzos

@gbrantzos this feature was added to OmniSharp recently but the VS Code extension hasn't been updated yet to take advantage of that

filipw avatar Jul 03 '17 06:07 filipw

Glad to hear that! @filipw any clue of when to expect an updated version of VS Code extension?

gbrantzos avatar Jul 03 '17 13:07 gbrantzos

@gbrantzos I just opened a PR here https://github.com/OmniSharp/omnisharp-vscode/pull/1620, now it's in @DustinCampbell's hands 😄

filipw avatar Jul 03 '17 14:07 filipw