Skip to content

x/tools/gopls: find references from go.mod files #75810

@findleyr

Description

@findleyr

A little feature I've always wanted: when looking at a go.mod flie, I want to jump to uses of a module.

For example, today I was investigating postgres usage in pkgsite, and I wanted to see where github.com/lib/pq was used. I can grep, but that's a different UX and loses some fidelity.

I think this follows the theme of "make more LSP operations work more of the time", and should be straightforward to implement given that we already support find references on package paths, and this would just be a union of those results.

@adonovan @pjweinb WDYT, worth doing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.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