1
0
mirror of https://github.com/golang/go synced 2024-10-01 05:38:32 -06:00
go/internal/lsp
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
..
browser internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
cache internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +00:00
cmd internal/lsp: use AST to construct placeholders 2019-11-25 01:11:57 +00:00
debug internal/lsp: fix the debug info pages 2019-11-04 23:16:26 +00:00
diff internal/lsp: fix unified diffs of edits at the end of a file 2019-10-11 16:38:14 +00:00
fuzzy internal/lsp: fix fuzzy matcher inconsistency 2019-10-22 21:05:28 +00:00
protocol internal/lsp: make Range a pointer in Change events 2019-11-20 19:02:09 +00:00
snippet all: fix broken links to LSP specification 2019-10-02 18:32:53 +00:00
source internal/lsp: track and parse non-compiled go files 2019-11-25 19:20:50 +00:00
telemetry internal/lsp: call load in (*session).NewView 2019-11-07 23:34:59 +00:00
testdata internal/lsp: fix literal completions in variadic params 2019-11-25 18:03:14 +00:00
tests internal/lsp: delete the source.Diagnostic.File field 2019-11-22 00:05:30 +00:00
code_action.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
command.go internal/lsp: fix panic in bestView 2019-11-16 21:44:31 +00:00
completion_test.go internal/lsp: fix variadic interface completion ranking 2019-11-18 05:14:29 +00:00
completion.go internal/lsp: improve completion ordering workaround 2019-11-22 18:27:03 +00:00
definition.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
diagnostics.go internal/lsp: use version numbers in diagnostic messages 2019-11-21 20:01:42 +00:00
folding_range.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
format.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
general.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
highlight.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
hover.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
implementation.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
link.go internal/lsp: fix panic in bestView 2019-11-16 21:44:31 +00:00
lsp_test.go internal/lsp: use snapshot to get reverse dependencies 2019-11-22 02:13:35 +00:00
references.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
rename.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
reset_golden.sh internal/lsp: fix regeneration of golden files 2019-09-25 13:16:59 +00:00
server.go internal/lsp: handle first change behavior on the server side 2019-11-22 18:53:53 +00:00
signature_help.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
symbols.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00
text_synchronization.go internal/lsp: handle first change behavior on the server side 2019-11-22 18:53:53 +00:00
watched_files.go internal/lsp: use version numbers in diagnostic messages 2019-11-21 20:01:42 +00:00
workspace.go internal/lsp: reorganize and refactor code 2019-11-21 02:33:28 +00:00