vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

Incorrect link to module repository

Open trailstrider opened this issue 3 years ago • 3 comments

Normally, ctrl+click on an import line for a module will take you to the dock page, usually hosted on https://pkg.go.dev/.

If I have a private repository holding a module referenced in an import line, ctrl+click will still try and take me to the module page at https://pkg.go.dev/. The issue is that this won't exist, and usually shouldn't exist as it is a private repo/module.

The click of the link should take me to the git repo page of my module instead, or better yet an associated doc page that follows the same format/approach so that the tooltip can also provide some guidance on usage like it does for other modules.

trailstrider avatar Jul 20 '22 18:07 trailstrider

Have you set GOPRIVATE in your workspace?

Related to golang/go#36998.

jamalc avatar Jul 22 '22 17:07 jamalc

Let's document this feature (in linkTarget)

hyangah avatar Jul 28 '22 17:07 hyangah

Change https://go.dev/cl/419979 mentions this issue: internal/lsp/source: document the handling of GOPRIVATE for linkTarget

gopherbot avatar Jul 28 '22 17:07 gopherbot

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

gopherbot avatar Aug 22 '22 17:08 gopherbot