go/internal/lsp/source
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
..
completion internal/lsp/source: omit assign stmt LHS in RHS completion 2020-12-07 20:43:33 +00:00
api_json.go internal/lsp/source: default experimentalDiagnosticsDelay to 250ms 2020-12-04 16:16:41 +00:00
call_hierarchy.go internal/lsp/source: handle a possible nil pointer in call hierarchy 2020-10-09 16:22:40 +00:00
code_lens.go gopls: add "go test" code action 2020-10-13 16:52:01 +00:00
command.go internal/lsp: add go get quick fix on failing imports 2020-12-03 19:34:02 +00:00
comment.go internal/lsp/source: use space character in markdown formatting 2020-08-26 03:44:07 +00:00
comment_test.go internal/lsp: convert comments to markdown before sending to client 2019-10-04 18:35:38 +00:00
diagnostics.go internal/typesinternal: use Go 1.16 metadata for go/types errors 2020-12-07 17:42:14 +00:00
extract.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
folding_range.go internal/lsp/source: move completion to its own package 2020-09-08 19:19:08 +00:00
format.go internal/lsp: fix handling of //-style comments in CRLF files 2020-12-04 16:22:04 +00:00
format_test.go internal/lsp: reproduce and fix golang/go#41057 2020-09-02 22:40:51 +00:00
gc_annotations.go internal/lsp: elide details for non-package files 2020-10-30 01:04:31 +00:00
highlight.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
hover.go internal/lsp: add ?utm_source=gopls to links to pkg.go.dev 2020-11-16 00:15:58 +00:00
identifier.go internal/lsp: fix godef for embedded type aliases 2020-11-23 15:59:28 +00:00
identifier_test.go internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
implementation.go internal/lsp/source: move completion to its own package 2020-09-08 19:19:08 +00:00
options.go internal/lsp/source: allow users to set new options for network access 2020-12-04 21:17:34 +00:00
options_test.go internal/lsp: fix misspelling in Codelens option 2020-11-30 17:56:50 +00:00
references.go internal/lsp: disable support for symlinks pending decision 2020-12-01 05:30:39 +00:00
rename.go internal/lsp: do not rename in compiler directive comments 2020-11-03 16:52:30 +00:00
rename_check.go internal/lsp/source: handle nil pointer in rename_check.go 2020-10-23 17:41:41 +00:00
signature_help.go internal/lsp/source: respect user's hover kind in signature help 2020-10-29 22:52:41 +00:00
source_test.go gopls, internal/lsp: support fillstruct for partially-filled structs 2020-11-30 20:22:45 +00:00
symbols.go internal/lsp: don't show blank identifiers in outline 2020-10-09 01:09:51 +00:00
types_format.go internal/lsp/source: fix default param name generation 2020-12-07 19:19:02 +00:00
util.go internal/lsp: disable support for symlinks pending decision 2020-12-01 05:30:39 +00:00
view.go internal/lsp: show multiple modules error message with GO111MODULE=auto 2020-12-08 06:23:17 +00:00
workspace_symbol.go internal/lsp/source: simplify workspace symbol package collection 2020-12-07 18:57:54 +00:00
workspace_symbol_test.go internal/lsp/source: support some fzf-like tokens in symbol matching 2020-09-08 16:35:05 +00:00