Skip to content

x/tools/gopls: CodeAction(source.doc): mark up DocLinks to built in types and methods #74524

Open
@dsnet

Description

@dsnet

Go version

go1.24

Output of go env in your module/workspace:

n/a

What did you do?

I had a comment like:

// MarshalJSON marshals d as JSON in a non-reversible manner and
// primarily intended for logging purposes.
//
// In particular, it uses:
//   - [reflect.Type.String] to encode a Go type
//   - [error.Error] to encode a Go error
//   - [Difference.OptionNames] to encode a [jsonv2.Options]

What did you see happen?

The [reflect.Type.String] and [Difference.OptionNames] were correctly resolved.
However, [error.Error] failed to be resolved.

What did you expect to see?

go/doc, gopls, etc. should recognize the linking of builtin types and methods.

Metadata

Metadata

Assignees

No one assigned

    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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions