Skip to content

Commit d01bb2f

Browse files
findleyrgopherbot
authored andcommitted
internal/lsp/source: document the handling of GOPRIVATE for linkTarget
Document that modules matching GOPRIVATE will not be linked. Updates golang/vscode-go#2362 Change-Id: I7e2447bb50a2cd0d7d394f8589ccd4498f889048 Reviewed-on: https://go-review.googlesource.com/c/tools/+/419979 Run-TryBot: Robert Findley <[email protected]> gopls-CI: kokoro <[email protected]> Auto-Submit: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
1 parent 98bfcd1 commit d01bb2f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

gopls/doc/settings.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ It might be one of:
363363

364364
If company chooses to use its own `godoc.org`, its address can be used as well.
365365

366+
Modules matching the GOPRIVATE environment variable will not have
367+
documentation links in hover.
368+
366369
Default: `"pkg.go.dev"`.
367370

368371
##### **linksInHover** *bool*

internal/lsp/source/api_json.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/lsp/source/options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ type DocumentationOptions struct {
350350
// * `"pkg.go.dev"`
351351
//
352352
// If company chooses to use its own `godoc.org`, its address can be used as well.
353+
//
354+
// Modules matching the GOPRIVATE environment variable will not have
355+
// documentation links in hover.
353356
LinkTarget string
354357

355358
// LinksInHover toggles the presence of links to documentation in hover.

0 commit comments

Comments
 (0)