1
0
mirror of https://github.com/golang/go synced 2024-10-01 13:28:37 -06:00
go/internal/lsp/cache
Ian Cottrell 4d9ae51c24 internal/lsp: remove source.FileContent
On FileHandle Read now just returns the data hash and error
This makes it more obvious that you should handle the error, rather than hiding
it all in a struct.
We also change the way we get and return content, the main source.File
constructs now hold a FileHandle that then updates on invalidation

Change-Id: I20be1b995355e948244342130eafec056df10081
Reviewed-on: https://go-review.googlesource.com/c/tools/+/180417
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-06-06 05:02:23 +00:00
..
cache.go internal/lsp: change file system to allow lazy reads 2019-06-06 01:09:34 +00:00
check.go internal/lsp: trim ASTs for which we do not require function bodies 2019-06-03 19:34:55 +00:00
external.go internal/lsp: remove source.FileContent 2019-06-06 05:02:23 +00:00
file.go internal/lsp: remove source.FileContent 2019-06-06 05:02:23 +00:00
gofile.go internal/lsp: don't queue content changes 2019-06-06 04:44:31 +00:00
load.go internal/lsp: remove source.FileContent 2019-06-06 05:02:23 +00:00
modfile.go internal/lsp: add modfile, sumfile structs, require Go files for diagnostics 2019-05-24 21:02:28 +00:00
parse.go internal/lsp: remove source.FileContent 2019-06-06 05:02:23 +00:00
pkg.go internal/lsp: fix regression from CL 179439 2019-06-03 19:23:55 +00:00
session.go internal/lsp: remove source.FileContent 2019-06-06 05:02:23 +00:00
sumfile.go internal/lsp: add modfile, sumfile structs, require Go files for diagnostics 2019-05-24 21:02:28 +00:00
view.go internal/lsp: remove source.FileContent 2019-06-06 05:02:23 +00:00
watcher.go internal/lsp: add file watching and use it to trigger invalidations 2019-05-24 14:03:12 +00:00