Repository navigation
Closed
Description
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 Iputs the cursor on that implementation, unfolded and below any sticky lines, andCtrl+G Pcomes back. - Typing the mnemonic
giin the leader does the same. - On an interface method with two or more implementations,
Ctrl+G Iopens a picker titledImplementations of <Type>.<Member>, with a Filter text field and one row per implementation (File.cs:12 code on that line).Enteror the Go to button goes to the selected row;Escor Cancel leaves the cursor where it was. - On an interface type name,
Ctrl+G Ilists 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 implementationsinstead of reporting none. - With no language server, or while one is still starting,
Ctrl+G Isays whatCtrl+G Dsays, 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 Ihint, and the F1 help lists it. - Quick info now opens with
Ctrl+G Qand the mnemonicqi; its Go menu item has hotkeyQand showsCtrl+G Q, and its F1 row says the same. - In the leader, typing
qalone no longer quits at once: it waits, listingqandqi.q Enterquits;qiopens Quick info. - Every other mnemonic still runs as soon as it's typed, without
Enter.
Tests
- The
textDocument/implementationrequest and its client capability; a server that doesn't advertiseimplementationProvidergets 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:
Enterruns a complete mnemonic that is a prefix of another; a unique mnemonic still auto-runs; an incomplete prefix plusEnterdoes nothing new. - Replace
No_mnemonic_is_a_prefix_of_anotherwith a test that every mnemonic is reachable, by its keys alone or withEnter. - 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.
Metadata
Metadata
Assignees
Labels
No labels
Activity
a-team-app commentedon Nov 19, 2026
Draft PR #701 is up.
Name known servers TuiCode's way, and ask for the definition alongsid…