1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:14:43 -07:00
go/internal/lsp/cache
Rohan Challa a9bd9c230f internal/lsp/cache: improve ModTidyHandle cache key
This change alters the key that is used to cache go.mod diagnostic changes, in particular it replaces using the snapshot ID with a string of all the imports used in the module and the hashed contents of the go.mod file. This reduces the number of times that we run "go mod tidy" to only when we detect import changes or the go.mod file is changed.

Change-Id: Icf49db34f44a4ae4772fff6dfb8b9a6955a8e2d6
Reviewed-on: https://go-review.googlesource.com/c/tools/+/218238
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-02-07 18:07:39 +00:00
..
analysis.go internal/lsp: determine parse mode based on workspace packages 2020-02-04 23:03:16 +00:00
cache.go internal/lsp/debug: serve cache entry counts 2020-02-03 22:21:18 +00:00
check.go internal/lsp/cache: improve ModTidyHandle cache key 2020-02-07 18:07:39 +00:00
debug.go internal/lsp/cache: add Env to debugView 2020-01-31 20:48:24 +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: don't show list errors unless necessary 2020-01-27 19:59:09 +00:00
external.go internal/lsp: check that a file handle is unmodified before read 2020-01-23 20:52:07 +00:00
load.go internal/lsp: stop returning metadata from (*snapshot).load 2020-02-06 00:15:21 +00:00
mod_tidy.go internal/lsp/cache: improve ModTidyHandle cache key 2020-02-07 18:07:39 +00:00
overlay.go internal/lsp: support multiple URIs in (*view).invalidateContent 2020-01-23 20:19:14 +00:00
parse.go internal/lsp/source: improve completion after accidental keywords 2020-02-06 05:08:22 +00:00
pkg.go internal/lsp: determine parse mode based on workspace packages 2020-02-04 23:03:16 +00:00
session.go internal/lsp: determine parse mode based on workspace packages 2020-02-04 23:03:16 +00:00
snapshot.go internal/lsp: stop returning metadata from (*snapshot).load 2020-02-06 00:15:21 +00:00
view.go internal/lsp: stop returning metadata from (*snapshot).load 2020-02-06 00:15:21 +00:00