1
0
mirror of https://github.com/golang/go synced 2024-11-19 06:04:39 -07:00
go/internal/lsp/cache
Heschi Kreinick ef6787d357 internal/lsp: track and parse non-compiled go files
When packages.Load'ing cgo packages, the authored files show up in
GoFiles, and the generated files show up in CompiledGoFiles. We need the
AST and type information for the latter, since they're the only thing we
can type check. But we also need the contents (and column mapper) for
the authored file so that we can navigate into it.

Store GoFiles in package metadata and checked Packages. Parse the extra
files, just for their mappers. Refactor the View functions a little bit,
since there's only one place that actually needs to find the mapper for
a file.

Updates golang/go#35720.

Change-Id: I9f96872a9a592bf0e11da27ebd8976c6db8752c9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/208502
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-11-25 19:20:50 +00:00
..
analysis.go internal/lsp/cache: disable analysis on dependencies (temporarily) 2019-11-22 18:46:19 +00:00
builtin.go internal/lsp: rename Files to CompiledGoFiles 2019-11-20 22:19:51 +00:00
cache.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
check.go internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +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: use version numbers in diagnostic messages 2019-11-21 20:01:42 +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
load.go internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +00:00
parse.go internal/lsp: handle breakage caused by CL 207598 2019-11-19 22:59:52 +00:00
pkg.go internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +00:00
session.go internal/lsp: handle first change behavior on the server side 2019-11-22 18:53:53 +00:00
snapshot.go internal/lsp: only search for references in reverse dependencies 2019-11-25 14:46:06 +00:00
view.go internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +00:00
watcher.go internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00