go/internal/lsp/cache
Rebecca Stambler 22683886a9 internal/lsp: fix go.mod creation without experimental workspace module
We were previously adding modules to the snapshot, even if they weren't
relevant without the workspace module mode. Now, check that the modules
are relevant before adding them.

Change-Id: Ib7600482992d538db2f7451863fee5709a35ffb3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/258719
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-10-02 14:15:43 +00:00
..
analysis.go internal/memoize: switch from GC-driven to explicit deletion 2020-08-10 19:02:17 +00:00
cache.go internal/lsp/cache: populate URI on files with errors 2020-09-21 18:19:13 +00:00
check.go gopls: fix various staticcheck errors 2020-09-29 17:30:36 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go internal/lsp: add support for RelatedInformation in diagnostics 2020-09-04 18:57:47 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp: add experimental support for multi-phase diagnostics 2020-10-02 14:12:12 +00:00
mod.go internal/lsp: allow multiple go.mod files in a view 2020-09-25 19:12:24 +00:00
mod_tidy.go internal/lsp: allow multiple go.mod files in a view 2020-09-25 19:12:24 +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/lsp/cache: trim ellipsis array literals 2020-08-12 23:16:40 +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: fix go.mod creation without experimental workspace module 2020-10-02 14:15:43 +00:00
snapshot.go internal/lsp: fix go.mod creation without experimental workspace module 2020-10-02 14:15:43 +00:00
view.go internal/lsp/source: remove unused Session method 2020-10-01 18:30:55 +00:00
view_test.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00