mirror of https://github.com/golang/go.git
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> |
||
|---|---|---|
| .. | ||
| testdata/unchanged | ||
| code_lens.go | ||
| diagnostics.go | ||
| format.go | ||
| hover.go | ||
| mod_test.go | ||