1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/internal/lsp/cache
Heschi Kreinick f7b8cc7bd0 internal/span,lsp: disambiguate URIs, DocumentURIs, and paths
Create a real type for protocol.DocumentURIs. Remove span.NewURI in
favor of path/URI-specific constructors. Remove span.Parse's ability to
parse URI-based spans, which appears to be totally unused.

As a consequence, we no longer mangle non-file URIs to start with
file://, and crash all over the place when one is opened.

Updates golang/go#33699.

Change-Id: Ic7347c9768e38002b4ad9c84471329d0af7d2e05
Reviewed-on: https://go-review.googlesource.com/c/tools/+/219482
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-02-14 22:51:03 +00:00
..
analysis.go internal/lsp/cache: hardcode parse modes instead of guessing them 2020-02-07 20:00:15 +00:00
cache.go internal/lsp/debug: serve cache entry counts 2020-02-03 22:21:18 +00:00
check.go internal/lsp/cache: add file contents to ParseGoHandle 2020-02-13 05:05:14 +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/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +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/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +00:00
mod.go internal/lsp/cache: parse go.mod file before running go mod tidy 2020-02-14 20:11:35 +00:00
parse.go internal/lsp/cache: fix crash fixing curlies near EOF 2020-02-14 17:25:38 +00:00
pkg.go internal/lsp/cache: add file contents to ParseGoHandle 2020-02-13 05:05:14 +00:00
session.go internal/lsp: propagate file invalidations to all views 2020-02-11 18:37:05 +00:00
snapshot.go internal/lsp: fix error handling when getting go.mod codelens 2020-02-14 19:54:16 +00:00
view.go internal/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +00:00