1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:44:45 -07:00
go/internal/lsp/cache
Rebecca Stambler e47c3d98c3 internal/lsp: check file content on disk when opening
As per discussion on golang/go#32810, to avoid the `go list` storm caused by many
files being opened, we check if the file content opened is equivalent to
the content on disk. If so, we mark this file as "on disk" so that we
don't send it as an overlay to go/packages.

Updates golang/go#32810

Change-Id: I0a520cf91bbe933c9afb76d0842f5556ac4e5b28
Reviewed-on: https://go-review.googlesource.com/c/tools/+/184257
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-07-01 19:36:37 +00:00
..
cache.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
check.go internal/lsp: fix deadlock in type-checking 2019-06-28 22:25:27 +00:00
external.go internal/lsp: fix panic in computing file version 2019-06-26 19:26:56 +00:00
file.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
gofile.go internal/lsp: fix bug where gopls hangs on manually typed imports 2019-07-01 17:55:09 +00:00
load.go internal/lsp: fix bug where gopls hangs on manually typed imports 2019-07-01 17:55:09 +00:00
modfile.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
parse.go internal/lsp: support a file belonging to multiple packages 2019-06-26 17:56:19 +00:00
pkg.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
session.go internal/lsp: check file content on disk when opening 2019-07-01 19:36:37 +00:00
sumfile.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
token.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
view.go internal/lsp: fix deadlock in type-checking 2019-06-28 22:25:27 +00:00
watcher.go internal/lsp: add file watching and use it to trigger invalidations 2019-05-24 14:03:12 +00:00