go/internal/lsp/cache
Rebecca Stambler e652b2f42c internal/lsp: show multiple modules error message with GO111MODULE=auto
When GO111MODULE=auto and the workspace is outside of $GOPATH/src, we
should still show diagnostics about how to correctly configure
multi-module workspaces. We should not show these warnings for
workspaces outside of a module within GOPATH.

This adds an extra piece to the WorkspacePackages error logic--we may
still need to show the errors even if WorkspacePackages returned
results. We should eventually consolidate all of this logic to be more
cohesive, but for now I think it's more important to cover all of the
different cases and add tests.

Updates golang/go#42109

Change-Id: I673a03c9840cdaaf7f058de1cda3bf36b96fa7d3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/275553
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-12-08 06:23:17 +00:00
..
analysis.go internal/memoize: add a final argument to Bind for cleaning up 2020-10-30 19:59:21 +00:00
cache.go internal/lsp/cache: only invalidate metadata for go.mod files on save 2020-11-20 03:23:37 +00:00
check.go internal/lsp: use mode (GOPATH/modules) oriented error messages 2020-12-01 06:44:07 +00:00
error_test.go
errors.go internal/typesinternal: use Go 1.16 metadata for go/types errors 2020-12-07 17:42:14 +00:00
imports.go internal/lsp: track all go.mod changes no matter the workspace mode 2020-12-01 19:22:19 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp: show multiple modules error message with GO111MODULE=auto 2020-12-08 06:23:17 +00:00
mod.go internal/lsp: disable network access for some go commands 2020-12-03 19:33:52 +00:00
mod_tidy.go internal/lsp: disable network access for some go commands 2020-12-03 19:33:52 +00:00
os_darwin.go internal/lsp: add a mutex around the view's options 2020-04-02 16:41:49 +00:00
os_windows.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00
parse.go internal/memoize: add a final argument to Bind for cleaning up 2020-10-30 19:59:21 +00:00
parse_test.go internal/lsp/cache: trim ellipsis array literals 2020-08-12 23:16:40 +00:00
pkg.go internal/lsp: prepare for deletion of view.modURI 2020-09-28 20:19:43 +00:00
session.go internal/lsp: move the background context onto the snapshot 2020-12-04 21:35:57 +00:00
snapshot.go internal/lsp: delete workspace package IDs after package name change 2020-12-08 00:26:38 +00:00
view.go internal/lsp/cache: build a go.sum file for multi-module workspaces 2020-12-07 18:57:29 +00:00
view_test.go internal/lsp: extract filenames from go command errors 2020-11-24 18:15:41 +00:00
workspace.go internal/lsp/cache: build a go.sum file for multi-module workspaces 2020-12-07 18:57:29 +00:00
workspace_test.go internal/lsp/cache: build a go.sum file for multi-module workspaces 2020-12-07 18:57:29 +00:00