go/gopls/internal/lsp/cache
Robert Findley 39c2fd8bff internal/lsp/cache: simplify importsState modfile hashing logic
While checking for changes to go.mod files in the importsState, there is
no reason for special handling based on workspace mode: we can simply
hash all active modfiles. This moves us towards an improved API for the
workspace: it should simply be responsible for tracking active modfiles.

This also incidentally avoids the panic reported in golang/go#55837.

Fixes golang/go#55837

Change-Id: I8cb345d1689be12382683186afe3f9addb19d467
Reviewed-on: https://go-review.googlesource.com/c/tools/+/447956
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-04 18:06:00 +00:00
..
analysis.go gopls/internal/lsp/cache: add PkgPath->PackageID index to Metadata 2022-10-20 21:54:57 +00:00
cache.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
check.go gopls/internal/lsp/cache: remove unnecessary params 2022-10-21 15:43:15 +00:00
debug.go
error_test.go
errors.go gopls/internal/lsp: tolerate missing end position in RelatedInformation 2022-10-19 18:04:39 +00:00
graph.go gopls/internal/lsp/cache: add PkgPath->PackageID index to Metadata 2022-10-20 21:54:57 +00:00
imports.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
keys.go
load.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
maps.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
metadata.go gopls/internal/lsp/cache: add PkgPath->PackageID index to Metadata 2022-10-20 21:54:57 +00:00
mod.go gopls/internal/span: some cleanups 2022-10-13 13:15:27 +00:00
mod_tidy.go gopls/internal/lsp/cache: better import path hygiene 2022-10-19 21:54:36 +00:00
os_darwin.go
os_windows.go
parse.go internal/diff: ToUnified may fail 2022-10-07 15:16:55 +00:00
parse_test.go
parsemode_go116.go
parsemode_go117.go
pkg.go gopls/internal/lsp: clarify control around diagnostics 2022-11-01 21:03:16 +00:00
session.go gopls/internal/lsp: use the golang.org/x/vuln/exp/govulncheck 2022-10-11 21:42:28 +00:00
snapshot.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
standalone_go115.go gopls/internal/lsp/cache: add support for loading standalone main files 2022-10-13 15:07:40 +00:00
standalone_go116.go gopls/internal/lsp/cache: remove stray print statement 2022-10-13 17:41:26 +00:00
standalone_go116_test.go gopls: minor cleanup of standalone package support 2022-10-19 19:08:58 +00:00
symbols.go
view.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
view_test.go gopls/internal/span: move internal/span into gopls 2022-10-07 14:50:44 +00:00
workspace.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00
workspace_test.go internal/lsp/cache: simplify importsState modfile hashing logic 2022-11-04 18:06:00 +00:00