1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:44:45 -07:00
go/internal
Heschi Kreinick 354bea8ca8 internal/lsp/cache: let gopls track go.mod files
We used to read the go.mod file information out of the imports.Resolver.
Now that gopls tracks go.mod itself, we can use that instead. This is a
slight regression, in that go.mods in replace targets will no longer be
watched, but I don't think that's too important.

This allows us to stop reading the ModuleResolver's internals, which
were not sufficiently locked.

Updates golang/go#36605.

Change-Id: I42939e0248cba1f6b3850a003de67fcc11ab10b1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/215319
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-01-17 21:20:11 +00:00
..
apidiff
fastwalk
gopathwalk
imports internal/lsp/cache: let gopls track go.mod files 2020-01-17 21:20:11 +00:00
jsonrpc2
lsp internal/lsp/cache: let gopls track go.mod files 2020-01-17 21:20:11 +00:00
memoize
module
packagesinternal go/packages: internally expose ForTests in go/packages 2020-01-16 22:11:50 +00:00
semver
span
telemetry internal/lsp,internal/telemetry: correct stale docstrings 2020-01-15 14:25:42 +00:00
testenv
tool
xcontext