You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add go-to implementation that would navigate to signature file #1473
Thanks for filing this, @Krzysztof-Cieslak! The "Go to Implementation" feature (textDocument/implementation) is a great addition for F# development — especially for navigating from a .fsi signature file declaration directly to the .fs implementation.
Current state
FSAC currently handles textDocument/definition which navigates to the declaration. A dedicated "Go to Implementation" flow would complement this by navigating the other direction: from a .fsi signature to its .fs counterpart, or from an abstract/virtual member to its concrete implementations.
Implementation sketch
The LSP standard for this is textDocument/implementation. The FSAC entry points are in AdaptiveFSharpLspServer.fs. A basic implementation could:
For .fsi → .fs navigation: Given a position in a .fsi file, look up the corresponding .fs file in the same project (they share a name) and navigate to the same symbol by name/position.
For abstract/virtual/interface members: Use FSharpCheckFileResults.GetSymbolUseAtLocation to find the symbol, then use FSharpCheckProjectResults.GetAllUsesOfAllSymbols or the FindAllReferences machinery to locate override/implementation sites.
The Ionide issue linked (ionide-vscode-fsharp#1966) seems to focus primarily on the .fsi ↔ .fs navigation case.
Related prior art
textDocument/definition already jumps to the symbol definition — the .fsi case would be a natural extension of that path
The FindAllReferences infrastructure in AdaptiveFSharpLspServer.fs is a good reference for how to traverse the project symbol graph
I'm happy to take a first pass at implementing the .fsi → .fs case if that's a good starting point — let me know!
Activity
github-actions commentedon Feb 26, 2026
🤖 This is an automated response from Repo Assist.
Thanks for filing this, @Krzysztof-Cieslak! The "Go to Implementation" feature (
textDocument/implementation) is a great addition for F# development — especially for navigating from a.fsisignature file declaration directly to the.fsimplementation.Current state
FSAC currently handles
textDocument/definitionwhich navigates to the declaration. A dedicated "Go to Implementation" flow would complement this by navigating the other direction: from a.fsisignature to its.fscounterpart, or from an abstract/virtual member to its concrete implementations.Implementation sketch
The LSP standard for this is
textDocument/implementation. The FSAC entry points are inAdaptiveFSharpLspServer.fs. A basic implementation could:.fsi→.fsnavigation: Given a position in a.fsifile, look up the corresponding.fsfile in the same project (they share a name) and navigate to the same symbol by name/position.FSharpCheckFileResults.GetSymbolUseAtLocationto find the symbol, then useFSharpCheckProjectResults.GetAllUsesOfAllSymbolsor theFindAllReferencesmachinery to locate override/implementation sites.The Ionide issue linked (ionide-vscode-fsharp#1966) seems to focus primarily on the
.fsi↔.fsnavigation case.Related prior art
textDocument/definitionalready jumps to the symbol definition — the.fsicase would be a natural extension of that pathFindAllReferencesinfrastructure inAdaptiveFSharpLspServer.fsis a good reference for how to traverse the project symbol graphI'm happy to take a first pass at implementing the
.fsi→.fscase if that's a good starting point — let me know!feat: enhance textDocument/implementation for .fsi <-> .fs navigation (…