1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:04:43 -07:00
go/internal/lsp/cache
Rebecca Stambler f6a1a6ff8e internal/lsp: check if the go/packages context has been canceled
Recently been noticing errors where we don't have full metadata for a
given package. It seems to me that, since we added the context to the
packages.Config, there have been cases where the context is canceled on
the first load, and then we type-check with incomplete data. I'm still
not sure if allowing go/packages to be canceled is the correct approach.

Change-Id: I6767ce763538bd579458c8f8db07f15c9eec7b4a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/201518
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Muir Manders <muir@mnd.rs>
Reviewed-by: Michael Matloob <matloob@golang.org>
2019-10-16 22:21:47 +00:00
..
analysis.go internal/lsp: use the analyzer's pointer instead of name 2019-10-15 21:12:01 +00:00
builtin.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
cache.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
check.go internal/lsp: remove misleading check span 2019-10-16 19:48:01 +00:00
external.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
file.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
gofile.go internal/lsp: return an error from {Narrowest,Widest}CheckPackageHandle 2019-10-11 16:51:06 +00:00
load.go internal/lsp: check if the go/packages context has been canceled 2019-10-16 22:21:47 +00:00
parse.go internal/lsp: use dependencies in cache keys 2019-10-04 02:16:33 +00:00
pkg.go internal/lsp: remove misleading check span 2019-10-16 19:48:01 +00:00
session.go internal/lsp: add analyses to the snapshot 2019-10-15 15:04:14 +00:00
snapshot.go internal/lsp: use the analyzer's pointer instead of name 2019-10-15 21:12:01 +00:00
view.go internal/lsp: include context in go/packages config 2019-10-11 19:56:53 +00:00
watcher.go internal/lsp: fix deadlocks loading lots of files at once 2019-07-03 17:22:52 +00:00