go/internal/lsp/cache
Alan Donovan 6c10975b72 internal/lsp/cache: honor RunDespiteErrors=false
This change prevents analysis from running on a package containing
any kind of error unless the analyzer has indicated that it is robust.
This is presumed to be the cause of several panics in production.

And a test.

Updates golang/go#54762

Change-Id: I9327e18ef8d7773c943ea45fc786991188358131
Reviewed-on: https://go-review.googlesource.com/c/tools/+/426803
Run-TryBot: Alan Donovan <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-09-01 15:27:30 +00:00
..
analysis.go internal/lsp/cache: honor RunDespiteErrors=false 2022-09-01 15:27:30 +00:00
cache.go internal/lsp/cache: delete misleading Package.IllTyped method 2022-08-31 20:07:46 +00:00
check.go internal/lsp/cache: invalid packages should not be workspace packages 2022-08-04 18:51:19 +00:00
debug.go internal/lsp: hover to render go 1.19 doc comments 2022-08-19 18:26:38 +00:00
error_test.go internal/lsp/cache: split up sourceDiagnostics 2021-03-02 02:05:13 +00:00
errors.go internal/lsp: fix suppressed panic in analyzer 2022-08-26 15:28:25 +00:00
graph.go internal/lsp/cache: tweaks to metadata graph 2022-08-16 01:59:44 +00:00
imports.go internal/lsp: use directoryFilters in import scanning 2022-08-04 15:50:11 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp/cache: clear shouldLoad IDs on load 2022-08-16 15:07:15 +00:00
maps.go internal/lsp/cache: simplify modtidy 2022-07-13 19:33:07 +00:00
metadata.go internal/lsp/cache: delete KnownMetadata.PkgFilesChanged 2022-08-04 18:51:46 +00:00
mod.go internal/memoize: rename Handle to Promise 2022-07-14 01:47:39 +00:00
mod_tidy.go internal/lsp/cache: report a critical error when go.work is invalid 2022-07-27 18:59:40 +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/memoize: rename Handle to Promise 2022-07-14 01:47:39 +00:00
parse_test.go internal/lsp/cache: don't trim unexported struct fields 2022-07-13 21:08:41 +00:00
parsemode_go116.go internal/lsp/cache: use cached parsed files for symbols, if available 2022-05-09 17:04:06 +00:00
parsemode_go117.go internal/lsp/cache: use cached parsed files for symbols, if available 2022-05-09 17:04:06 +00:00
pkg.go internal/lsp/cache: delete misleading Package.IllTyped method 2022-08-31 20:07:46 +00:00
session.go internal/lsp: limit diagnostics for upgrades to codelens go.mod file 2022-08-26 17:39:52 +00:00
snapshot.go internal/lsp/cache: tweaks to metadata graph 2022-08-16 01:59:44 +00:00
symbols.go internal/memoize: rename Handle to Promise 2022-07-14 01:47:39 +00:00
view.go internal/lsp: limit diagnostics for upgrades to codelens go.mod file 2022-08-26 17:39:52 +00:00
view_test.go internal/lsp: Update FilterDisallow to support matching directories at arbitrary depth. 2022-07-18 17:53:36 +00:00
workspace.go internal/lsp/cache: track explicit go.work files outside the workspace 2022-08-08 18:11:01 +00:00
workspace_test.go internal/lsp/cache: track explicit go.work files outside the workspace 2022-08-08 18:11:01 +00:00