go/internal/lsp
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 gopls, internal/lsp: support fillstruct for partially-filled structs 2020-11-30 20:22:45 +00:00
browser
cache internal/lsp: show multiple modules error message with GO111MODULE=auto 2020-12-08 06:23:17 +00:00
cmd gopls/doc: generate JSON too, store as composite literal 2020-12-03 20:21:02 +00:00
debug internal/lsp: get debug pages limping along again 2020-11-16 16:55:47 +00:00
diff internal/lsp: force LANG setting while difftest 2020-12-04 13:55:11 +00:00
fake internal/lsp: delete workspace package IDs after package name change 2020-12-08 00:26:38 +00:00
fuzzy internal/lsp/fuzzy: fix return value on no match 2020-08-28 15:37:48 +00:00
helper internal/lsp: update lsp protocol stubs to match LSP 3.16 revisions 2020-10-27 18:00:23 +00:00
lsprpc internal/lsp/lsprpc: prefer XDG_RUNTIME_DIR for the daemon socket 2020-12-01 03:00:18 +00:00
mod internal/lsp: disable network access for some go commands 2020-12-03 19:33:52 +00:00
protocol internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
snippet internal/lsp: offer type converted completion candidates 2020-11-30 20:04:59 +00:00
source internal/lsp: show multiple modules error message with GO111MODULE=auto 2020-12-08 06:23:17 +00:00
testdata internal/lsp/source: omit assign stmt LHS in RHS completion 2020-12-07 20:43:33 +00:00
tests internal/typesinternal: use Go 1.16 metadata for go/types errors 2020-12-07 17:42:14 +00:00
README.md internal/lsp: add READMEs that describe tests, how to run tests 2020-12-03 17:03:53 +00:00
call_hierarchy.go internal/lsp: release resources for call hierarchy file requests 2020-08-07 21:04:51 +00:00
code_action.go internal/lsp: add go get quick fix on failing imports 2020-12-03 19:34:02 +00:00
code_lens.go internal/lsp: fix misspelling in Codelens option 2020-11-30 17:56:50 +00:00
command.go internal/lsp: use ForTest package name when running test command 2020-12-06 23:03:34 +00:00
completion.go internal/lsp/source: refactor c.item to support deepSearch in all cases 2020-10-01 23:00:09 +00:00
completion_test.go internal/lsp: pass options by reference instead of by value 2020-09-16 22:53:23 +00:00
debounce.go internal/lsp: add experimental support for multi-phase diagnostics 2020-10-02 14:12:12 +00:00
debounce_test.go internal/lsp: delay longer in TestDebouncer 2020-10-30 20:03:00 +00:00
definition.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
diagnostics.go internal/lsp: show multiple modules error message with GO111MODULE=auto 2020-12-08 06:23:17 +00:00
folding_range.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
format.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
general.go internal/lsp: explicitly watch all known directories 2020-11-25 22:00:14 +00:00
highlight.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
hover.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
implementation.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
link.go internal/lsp: add ?utm_source=gopls to links to pkg.go.dev 2020-11-16 00:15:58 +00:00
lsp_test.go gopls, internal/lsp: support fillstruct for partially-filled structs 2020-11-30 20:22:45 +00:00
progress.go internal/lsp: trim progress report messages 2020-11-11 21:33:28 +00:00
progress_test.go internal/lsp: improvements for command messages 2020-08-21 20:07:30 +00:00
references.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
rename.go internal/lsp/source: add a FileSource interface 2020-10-19 16:07:06 +00:00
reset_golden.sh
semantic.go internal/lsp: revise some semantic token details 2020-11-24 12:36:21 +00:00
server.go internal/lsp: explicitly watch all known directories 2020-11-25 22:00:14 +00:00
server_gen.go internal/lsp: update lsp protocol stubs to match LSP 3.16 revisions 2020-10-27 18:00:23 +00:00
signature_help.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
symbols.go internal/lsp/cache: ref-count snapshots 2020-08-03 22:08:54 +00:00
text_synchronization.go internal/lsp: move generated file check out of didModifyFiles 2020-12-03 22:54:36 +00:00
workspace.go internal/lsp: fix capability registration for semantic tokens 2020-11-16 18:11:12 +00:00
workspace_symbol.go internal/lsp/source: add a new symbolStyle configuration option 2020-06-26 17:13:37 +00:00

README.md

lsp

internal/lsp provides much of the Language Server Protocol (lsp) implementation for gopls.

Documentation for users and contributors can be found in the gopls/doc directory.