1
0
mirror of https://github.com/golang/go synced 2024-10-01 04:08:32 -06:00
go/internal/lsp/cache
Rebecca Stambler eb7cb10de1 internal/lsp/cache: move to a model of caching in a snapshot
This change moves from caching package information the file object to
caching in a map that gets invalidated when content changes.

This simplifies cache invalidation and reduces the number of fields
guarded by the (*goFile).mu lock.

Change-Id: I33fef6e0b18badb97e49052d9d6e3c15047c4b63
Reviewed-on: https://go-review.googlesource.com/c/tools/+/196984
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-09-25 02:06:38 +00:00
..
analysis.go internal/lsp: make the analyzers configurable per view 2019-09-23 16:54:13 +00:00
builtin.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
cache.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
check.go internal/lsp: only cache type information for active packages 2019-09-23 23:01:26 +00:00
external.go internal/lsp: only cache type information for active packages 2019-09-23 23:01:26 +00:00
file.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
gofile.go internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
load.go internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
modfile.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
parse.go internal/lsp: fix infinite recursion while fixing AST 2019-09-19 16:27:28 +00:00
pkg.go internal/lsp: associate code action diagnostics with suggested fixes 2019-09-24 23:33:35 +00:00
session.go internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
snapshot.go internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
sumfile.go internal/lsp: support running go mod tidy as a code action 2019-09-20 13:08:46 +00:00
token.go internal/lsp: unlabel context, log errors when canceled 2019-08-20 20:39:21 +00:00
view.go internal/lsp/cache: move to a model of caching in a snapshot 2019-09-25 02:06:38 +00:00
watcher.go internal/lsp: fix deadlocks loading lots of files at once 2019-07-03 17:22:52 +00:00