Skip to content

Go to the code that runs behind an interface with Go to implementation (gi) #699

Closed

Description

@a-team-app

Context

Go to definition stops at an interface or abstract declaration, which has no body. This task adds Go to implementation (gi, Ctrl+G I): one answer jumps, several open the Definitions of picker, none says so. Quick info moves from gi/Ctrl+G I to qi/Ctrl+G Q to make room, and Enter in the leader starts running a complete mnemonic that also begins a longer one, so q Enter still quits. Pitch: #682.

Acceptance criteria

  • In a C# file, on a call through an interface method with one implementation, Ctrl+G I puts the cursor on that implementation, unfolded and below any sticky lines, and Ctrl+G P comes back.
  • Typing the mnemonic gi in the leader does the same.
  • On an interface method with two or more implementations, Ctrl+G I opens a picker titled Implementations of <Type>.<Member>, with a Filter text field and one row per implementation (File.cs:12 code on that line). Enter or the Go to button goes to the selected row; Esc or Cancel leaves the cursor where it was.
  • On an interface type name, Ctrl+G I lists or jumps to the classes that implement it.
  • Where nothing implements it, the status bar says No implementations of <name>.
  • An implementation that lives in a referenced library opens as read-only decompiled source, as Go to definition's do.
  • In a Python file served by Pyright, the status bar says Pyright can't find implementations instead of reporting none.
  • With no language server, or while one is still starting, Ctrl+G I says what Ctrl+G D says, and the Go menu dims Go to implementation as it dims Go to definition.
  • The Go menu lists Go to implementation beside Go to definition with its Ctrl+G I hint, and the F1 help lists it.
  • Quick info now opens with Ctrl+G Q and the mnemonic qi; its Go menu item has hotkey Q and shows Ctrl+G Q, and its F1 row says the same.
  • In the leader, typing q alone no longer quits at once: it waits, listing q and qi. q Enter quits; qi opens Quick info.
  • Every other mnemonic still runs as soon as it's typed, without Enter.

Tests

  • The textDocument/implementation request and its client capability; a server that doesn't advertise implementationProvider gets no request and yields the "can't find" message.
  • Location and LocationLink answers, single and several, including decompiled (csharp:/metadata) locations, routed the way Go to definition's are.
  • The picker title and rows for several answers; the status message for none.
  • Leader: Enter runs a complete mnemonic that is a prefix of another; a unique mnemonic still auto-runs; an incomplete prefix plus Enter does nothing new.
  • Replace No_mnemonic_is_a_prefix_of_another with a test that every mnemonic is reachable, by its keys alone or with Enter.
  • Default keybindings: Ctrl+G I → Go to implementation, Ctrl+G Q → Quick info, no clash.

Out of scope

  • A type hierarchy view, Go to base, inline implementation counts (code lens), or a peek view.
  • Making Go to definition skip past the interface.
  • A Go to implementation button in the Quick info box.
  • Changing any other mnemonic or key.

Activity

  1. a-team-app commented on Nov 19, 2026

    @a-team-app
    ContributorAuthor

    Draft PR #701 is up.

  2. added a commit that references this issue on Nov 20, 2026
    259bc6b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions