go/internal/lsp/cache
Michael Matloob 622cf7b338 internal/lsp/cache: copy workFile when invalidating workspace
to avoid losing workFile information when that happens. This fixes an
issue where diagnostics, hover, etc didn't show up after the initial
load when some changes were made to go.work files.

Change-Id: I42e2dcfd94a5b4726856ab0a4d8dfc9c1efc48b1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/391257
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-03-10 22:50:41 +00:00
..
analysis.go x/tools: improving the error message for check fact type 2022-01-04 19:51:13 +00:00
cache.go internal/template: identify template files by the templateExtensions option 2022-01-13 17:30:17 +00:00
check.go internal/lsp: hash go version into package key 2022-02-24 19:04:43 +00:00
error_test.go internal/lsp/cache: split up sourceDiagnostics 2021-03-02 02:05:13 +00:00
errors.go internal/lsp: use regexp to add go mod edit -go quick fix 2022-03-09 21:08:21 +00:00
imports.go internal/lsp/cache: use -workfile on 1.18 2022-02-04 14:03:59 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp: honor the file kind provided by clients for overlays 2022-01-13 20:54:45 +00:00
metadata.go gopls: wire in LangVersion and ModulePath for gofumpt formatting 2022-02-24 18:08:50 +00:00
mod.go internal/lsp: report diagnostics on go.work files 2022-03-04 18:29:58 +00:00
mod_tidy.go internal/lsp/cache: avoid panic in mod diags with redundant requires 2022-01-13 21:34:46 +00:00
os_darwin.go internal/lsp/cache: clarify an error message about mismatching casing 2021-08-03 17:18:10 +00:00
os_windows.go internal/lsp/cache: clarify an error message about mismatching casing 2021-08-03 17:18:10 +00:00
parse.go internal/template: identify template files by the templateExtensions option 2022-01-13 17:30:17 +00:00
parse_test.go internal/lsp/cache: trim more stuff in ParseExported mode 2021-05-11 17:48:41 +00:00
pkg.go internal/lsp/cache: don't offset invalid positions 2021-11-05 15:19:55 +00:00
session.go internal/lsp: add support for formatting go.work files 2022-02-15 17:15:32 +00:00
snapshot.go internal/lsp/cache: set GOWORK=off when mutating modfiles 2022-03-10 21:45:24 +00:00
symbols.go internal/lsp: precompute workspace symbols 2021-08-09 20:20:17 +00:00
view.go internal/lsp/cache: always consider go.work files for ws expansion 2022-03-07 16:11:49 +00:00
view_test.go internal/lsp/cache: always consider go.work files for ws expansion 2022-03-07 16:11:49 +00:00
workspace.go internal/lsp/cache: copy workFile when invalidating workspace 2022-03-10 22:50:41 +00:00
workspace_test.go internal/lsp/cache: construct workspace even when go.work has error 2022-03-03 21:30:30 +00:00