1
0
mirror of https://github.com/golang/go synced 2024-10-01 05:28:33 -06:00
go/internal/lsp/mod
Rohan Challa bd79bb77d6 internal/lsp/cache: create infra for caching go.mod diagnostics
This change creates the infrastructure for caching diagnostics. Right now it uses a naive key of the entire snapshot which does not really add any benefit from using the cache. It also moves some code from inside the internal/lsp/mod to internal/lsp/cache.

Updates golang/go#31999

Change-Id: I599ad281baa062448d33ca0ea88ae6e09e10d73e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/215021
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-21 19:43:28 +00:00
..
testdata go/packages: fix incorrect needtypes and needsrcs logic 2020-01-16 22:59:55 +00:00
diagnostics.go internal/lsp/cache: create infra for caching go.mod diagnostics 2020-01-21 19:43:28 +00:00
mod_test.go internal/lsp/cache: create infra for caching go.mod diagnostics 2020-01-21 19:43:28 +00:00