go/internal/lsp/cache
Rebecca Stambler 7aa8294462 internal/lsp: handle panic in fix AST
I'm not sure how this can happen, but it seems possible that a bad
expression might somehow have an invalid position.

Fixes golang/go#47231

Change-Id: I0794bdfb66f668fc375e9fe561c9f239c8b92492
Reviewed-on: https://go-review.googlesource.com/c/tools/+/334892
Trust: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2021-07-21 16:31:48 +00:00
..
analysis.go internal/lsp/cache: be consistent about using snapshot.FileSet 2021-07-08 19:56:07 +00:00
cache.go internal/lsp: remove some unused parameters, mostly in the cache package 2021-03-25 00:26:08 +00:00
check.go internal/lsp: improve package search in a couple places 2021-07-13 13:36:40 +00:00
error_test.go internal/lsp/cache: split up sourceDiagnostics 2021-03-02 02:05:13 +00:00
errors.go internal/lsp/cache: be consistent about using snapshot.FileSet 2021-07-08 19:56:07 +00:00
imports.go internal/lsp/cache: fix panic in GOPATH mode 2021-01-07 18:21:03 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp/cache: invalidate packages in setMetadata 2021-07-08 19:53:41 +00:00
mod.go internal/lsp: fix support for SourceFixAll code actions 2021-03-24 23:51:27 +00:00
mod_tidy.go internal/lsp: remove unnecessary call to WorkspacePackages in mod tidy 2021-03-30 04:13:47 +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
parse.go internal/lsp: handle panic in fix AST 2021-07-21 16:31:48 +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: improve package search in a couple places 2021-07-13 13:36:40 +00:00
session.go internal/lsp/cache: fix raciness of updating the view workspace 2021-07-08 19:57:21 +00:00
snapshot.go internal/lsp/cache: be consistent about using snapshot.FileSet 2021-07-08 19:56:07 +00:00
view.go internal/lsp/cache: don't report a context error if load succeeded 2021-07-08 21:02:30 +00:00
view_test.go internal/lsp: exclude the module cache from the workspace 2021-06-11 17:18:39 +00:00
workspace.go internal/lsp: start parsing go.work file like gopls.mod file 2021-06-24 04:20:31 +00:00
workspace_test.go internal/lsp: start parsing go.work file like gopls.mod file 2021-06-24 04:20:31 +00:00