go/gopls/internal/regtest
Robert Findley e55fb40e67 internal/lsp/cache: clear shouldLoad IDs on load
CL 417576 externalized shouldLoad tracking into a map, which was used to
trigger a reload and cleared once reload completes. Unfortunately, it
overlooked the fact that we may also reload the entire workspace (via
reinitialization). In this case, we should clear newly loaded IDs from
the shouldLoad map, so that they are not subsequently loaded again.

Fixes golang/go#54473

Change-Id: I26f49552cae502644142dc4a4e946294db37f6f7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/424074
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-08-16 15:07:15 +00:00
..
bench gopls/internal/regtest/bench: replace -gopls_version with -gopls_commit 2022-08-15 19:50:52 +00:00
codelens internal/lsp/source: don't crash requesting gc_details for an empty file 2022-08-02 18:19:01 +00:00
completion internal/lsp/regtest: only run /default tests with -short 2022-07-26 21:20:53 +00:00
debug internal/lsp/regtest: allow sharing memoized results across regtests 2022-07-26 21:20:42 +00:00
diagnostics go/analysis: remove stray print statement in the timeformat analyzer 2022-08-12 17:40:51 +00:00
inlayhints internal/lsp/regtest: simplify, consolidate, and document settings 2022-07-12 16:56:46 +00:00
misc internal/lsp/source: remove utm_source from pkgsite links 2022-08-15 16:22:50 +00:00
modfile gopls/internal/regtest: unskip TestSumUpdateFixesDiagnostics 2022-08-15 18:38:24 +00:00
template gopls/internal/regtest/bench: refactor and improve benchmarks 2022-08-04 14:58:59 +00:00
watch internal/lsp: re-send diagnostics on file events 2022-08-02 18:52:36 +00:00
workspace internal/lsp/cache: clear shouldLoad IDs on load 2022-08-16 15:07:15 +00:00