1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:44:40 -07:00
go/internal/lsp/cache
Michael Matloob caa0b0f7d5 internal/lsp/source: add support for references in the same workspace
When looking for references, look in the entire workspace rather than
the same package. This makes the references query more expensive because
it needs to look at every package in the workspace, but hopefully
it shouln't be user-noticable. This can be made more efficient by only
checking packages that are transitive reverse dependencies. I don't think a
mechanism to get all transitive reverse dependencies exists yet.

One of the references test have been changed: it looked up references
of the builtin int type, but now there are so many refererences that
the test too slow and doesn't make sense any more. Instead look up
references of the type "i" in that file.

Change-Id: I93b3bd3795386f06ce488e76e6c7c8c1b1074e22
Reviewed-on: https://go-review.googlesource.com/c/tools/+/206883
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-11-14 20:04:27 +00:00
..
analysis.go internal/lsp/cache: handle a nil pointer exception in analysis 2019-11-08 17:37:09 +00:00
builtin.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
cache.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
check.go internal/memoize: propagate cancellation 2019-11-12 23:22:37 +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/lsp: look up files in packages by position instead of URI 2019-11-13 16:34:02 +00:00
external.go internal/lsp: use versioned URIs in rename and code actions 2019-11-13 05:52:40 +00:00
file.go internal/lsp: modify approach to watching changed files 2019-10-22 21:33:45 +00:00
gofile.go internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00
load.go internal/lsp/cache: have NewView create view even if load all packages fails 2019-11-11 18:23:52 +00:00
parse.go internal/lsp: stop caching diagnostics on the package 2019-10-24 22:03:59 +00:00
pkg.go internal/lsp: look up files in packages by position instead of URI 2019-11-13 16:34:02 +00:00
session.go internal/lsp/source: add support for references in the same workspace 2019-11-14 20:04:27 +00:00
snapshot.go internal/lsp/source: add support for references in the same workspace 2019-11-14 20:04:27 +00:00
view.go internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00
watcher.go internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00