-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.help wanted
Milestone
Description
When requesting textDocument/definition
gopls returns a Location.
This FR is about supporting returning a LocationLink instead for clients that support it (a client capability).
Rationale: some editors/plugins can use this to support previewing the entire function on hover. See neovim/neovim#12218 and neovim/neovim#12368 for an in-depth description.
In terms of other language servers that do this, it looks like rust-analyzer does it as well.
All (current) LSP actions that can return LocationLink
's:
textDocument/declaration
textDocument/definition
textDocument/typeDefinition
Metadata
Metadata
Assignees
Labels
FeatureRequestIssues asking for a new feature that does not need a proposal.Issues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.help wanted