x/tools/gopls: reconsider the document links/hovers for import/module statements #51848
Labels
Documentation
Issues describing a change to documentation.
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Currently gopls decorates each import statement with a link to the package doc
in
pkg.go.dev
(or a custom doc site if users configured a different linkTarget) unconditionally.However, I found the current choice is not optimal because
go.work
-adjusted dependencies can't be right.I propose we change this part of UX/UI.
I also propose a similar change for the links used in go.mod files.
For document links, maybe we can consider the go.mod file of the module stored in the module cache.
The text was updated successfully, but these errors were encountered: