1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:18:32 -06:00
go/internal/lsp/cache
Muir Manders 59731289e9 internal/lsp: include context in go/packages config
Include the context when invoking go/packages.Load so it is
cancelable. Otherwise if the user is manually typing an import or
otherwise messing around with imports, a big queue of potentially very
slow go/packages.Load calls will build up.

Fixes golang/go#34414.

Change-Id: I80732086b478b908c720739708dd773e81fe2b81
Reviewed-on: https://go-review.googlesource.com/c/tools/+/200058
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-10-11 19:56:53 +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: use dependencies in cache keys 2019-10-04 02:16:33 +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: use dependencies in cache keys 2019-10-04 02:16:33 +00:00
parse.go internal/lsp: use dependencies in cache keys 2019-10-04 02:16:33 +00:00
pkg.go internal/lsp: use dependencies in cache keys 2019-10-04 02:16:33 +00:00
session.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
snapshot.go internal/lsp: use dependencies in cache keys 2019-10-04 02:16:33 +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