go/internal/lsp/mod
Rob Findley 0a3dcccdcf internal/lsp/source: add a FileSource interface
Rename Snapshot.GetFile to GetVersionedFile, and make the signature of
GetFile consistent with the corresponding method on session and cache.
This allows algorithms that depend only on file state to be expressed
using this API. In a subsequent CL, this is used for building and
testing the workspace module.

Preeemptively add the FileSource interface for use in these algorithms.

Change-Id: I550906e554fd290dcdf4cac442d5f223e0f644c1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/263522
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Trust: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-10-19 16:07:06 +00:00
..
testdata/unchanged internal/lsp/tests: fix reset of golden files 2020-02-19 14:42:13 +00:00
code_lens.go internal/lsp, gopls: require a "gopls_" prefix on all commands 2020-10-09 03:22:23 +00:00
diagnostics.go internal/lsp/source: add a FileSource interface 2020-10-19 16:07:06 +00:00
format.go internal/lsp: remove Mod handles 2020-07-29 19:44:36 +00:00
hover.go internal/lsp: prepare for deletion of view.modURI 2020-09-28 20:19:43 +00:00
mod_test.go internal/lsp: fix env setting type 2020-10-15 17:44:03 +00:00