Skip to content

x/tools/gopls: support jump-to-definition on field doc links #75038

@findleyr

Description

@findleyr

I've get caught by this missing feature almost daily: when a doc link points to a selector (as in // [Foo.Bar] is a Baz), why don't we support jump-to-definition when Bar is a field?! I don't see anything in https://go.dev/doc/comment#doclinks that indicates field selectors are not allowed.

In the code, we explicitly filter to *types.Func with no explanation. I'm going to remove that filtering...

Metadata

Metadata

Assignees

Labels

ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions