1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/internal/lsp/cache
Rebecca Stambler 0bbdf54eff internal/lsp: modify approach to watching changed files
This change modifies the invalidContent function to take a file change
type. This allows us to eliminate the separate invalidateMetadata
function. The logic of watching changed files is then further pushed
into the caching layer.

Updates golang/go#34218

Change-Id: Id31b3931c45ec408b6e7b4a362e00f9091ba4f70
Reviewed-on: https://go-review.googlesource.com/c/tools/+/201221
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-10-22 21:33:45 +00:00
..
analysis.go internal/lsp: move error range computations into cache package 2019-10-21 22:12:58 +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: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
error_test.go internal/lsp: refactor error handling code in type-checking 2019-10-21 18:57:46 +00:00
errors.go internal/lsp: use the AST to get correct ranges 2019-10-22 16:21:03 +00:00
external.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
file.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +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: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
parse.go internal/lsp: fix bad *ast.ArrayTypes for completion 2019-10-17 20:53:01 +00:00
pkg.go internal/lsp: move error range computations into cache package 2019-10-21 22:12:58 +00:00
session.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
snapshot.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
view.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
watcher.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00