1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:54:49 -07:00
go/internal/lsp/cache
Rebecca Stambler 60bb3025ec internal/lsp: fix race condition in caching
This change fixes a race condition in the metadata caching logic.
Also, some minor fixes to comments and invalidation logic (it's not
necessary to invalidate ASTs when a package is invalidated).

Change-Id: I927bf6fbc661a86ef0ba99b29a9ed979cd1eb95d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/190317
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-08-14 16:34:44 +00:00
..
cache.go internal/lsp: remove the non context xlog path 2019-07-15 03:45:47 +00:00
check.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
external.go internal/lsp: extra telemetry tagging of files and packages 2019-07-31 19:44:43 +00:00
file.go internal/lsp: cache the *ast.File and *token.File on the package 2019-07-16 19:44:59 +00:00
gofile.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
load.go internal/lsp: fix race condition in caching 2019-08-14 16:34:44 +00:00
modfile.go internal/lsp: use x/xerrors to create new errors 2019-08-06 19:46:56 +00:00
parse.go internal/lsp: fix race condition in caching 2019-08-14 16:34:44 +00:00
pkg.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
session.go internal/lsp: show generated warning on didChange, not didOpen 2019-08-13 21:47:29 +00:00
sumfile.go internal/lsp: use x/xerrors to create new errors 2019-08-06 19:46:56 +00:00
token.go internal/lsp: use x/xerrors to create new errors 2019-08-06 19:46:56 +00:00
view.go internal/lsp: fix race condition in caching 2019-08-14 16:34:44 +00:00
watcher.go internal/lsp: fix deadlocks loading lots of files at once 2019-07-03 17:22:52 +00:00