x/tools/gopls: provide links for replace in go.mod #73423
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
gopls tip
go env
What did you do?
require A v1.2.3
,replace A => A v2.3.4
, if I click the required module, it jumps tov1.2.3
go doc rather thanv2.3.4
.What did you see happen?
NA
What did you expect to see?
I would like to support the 2 cases above:
the local replacement(
replace A => /local/path
should have a link to/local/path/go.mod
, so once I click the link i can jump to the corresponding module. Adding ago.mod
rather than/local/path
because vscode will show an empty page if you want to open a folder.I want this feature because I define a CLI which helps to insert many local replacements via code generation, and it will be great if the local path has a link so i can click it in vscode.
the docs should respect the replace, the jumped link should have version v0.32.0 rather than v0.30.0.
I can help to do the code change, actually I already have a draft here.
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: