1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:44:45 -07:00
go/internal/lsp/cache
Rebecca Stambler 9a3b5d688f internal/lsp: parse filenames only out of go list errors
This changes the packageErrorSpan function into the listErrorSpan.
Previously, this was causing the gopls-generated errors to get parsed,
which would result in attempts to send diagnostics for invalid filenames.

Fixes golang/go#32603

Change-Id: I7a54ed8884b78beb3f894598f18a24ed232f7412
Reviewed-on: https://go-review.googlesource.com/c/tools/+/182460
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-06-14 19:27:58 +00:00
..
cache.go internal/lsp: using memoize for all file contents 2019-06-11 20:12:47 +00:00
check.go internal/lsp: use the memoize package to get *token.Files 2019-06-14 19:20:18 +00:00
external.go internal/lsp: using memoize for all file contents 2019-06-11 20:12:47 +00:00
file.go internal/lsp: use the memoize package to get *token.Files 2019-06-14 19:20:18 +00:00
gofile.go internal/lsp: use ids instead of package paths as map keys 2019-06-12 18:00:59 +00:00
load.go internal/lsp: parse filenames only out of go list errors 2019-06-14 19:27:58 +00:00
modfile.go internal/lsp: add modfile, sumfile structs, require Go files for diagnostics 2019-05-24 21:02:28 +00:00
parse.go internal/lsp: use the memoize package to get *token.Files 2019-06-14 19:20:18 +00:00
pkg.go internal/lsp: use ids instead of package paths as map keys 2019-06-12 18:00:59 +00:00
session.go internal/lsp: use ids instead of package paths as map keys 2019-06-12 18:00:59 +00:00
sumfile.go internal/lsp: add modfile, sumfile structs, require Go files for diagnostics 2019-05-24 21:02:28 +00:00
token.go internal/lsp: use the memoize package to get *token.Files 2019-06-14 19:20:18 +00:00
view.go internal/lsp: use ids instead of package paths as map keys 2019-06-12 18:00:59 +00:00
watcher.go internal/lsp: add file watching and use it to trigger invalidations 2019-05-24 14:03:12 +00:00