1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/internal/lsp/cmd
Rebecca Stambler a9a43c4726 internal/lsp: store workspace package IDs with package paths
A test variant for a package can only be reloaded by running go/packages
on the non-test variants import path with the -test flag. We need to
cache this import path in order to be able to reload a test package
on-demand.

Also, always ignore test main packages by detecting them in the
metadata.

Fixes golang/go#36473

Change-Id: I6e5a61c8e73689212303ae09fa3aed4a2ee8762a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/213660
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-01-09 22:04:34 +00:00
..
test internal/lsp: store workspace package IDs with package paths 2020-01-09 22:04:34 +00:00
capabilities_test.go internal/lsp: change CompletionItem.{Command,TextEdit} to pointers 2019-12-16 22:14:42 +00:00
check.go internal/lsp: miscellaneous cleanup 2019-12-30 22:03:29 +00:00
cmd_test.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
cmd.go internal/lsp/cmd: fix documentation 2020-01-02 17:13:01 +00:00
definition.go internal/lsp: improve link in documentation on hover 2019-12-12 22:39:21 +00:00
export_test.go internal/lsp: refactor query definition test to allow adding a new test 2019-03-18 20:06:54 +00:00
folding_range.go tools/gopls: add cmd support for folding_ranges 2019-11-12 00:55:09 +00:00
format.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
highlight.go internal/lsp: add control flow highlighting for functions 2019-12-02 19:01:20 +00:00
implementation.go tools/gopls: add cmd support for implementation 2019-11-25 20:27:09 +00:00
imports.go internal/lsp: fix the return type of CodeAction() 2019-11-19 17:57:05 +00:00
info.go tools/internal/lsp/cmd: fix documentation 2019-12-30 18:10:14 +00:00
links.go tools/gopls: add command line support for links 2019-11-01 17:18:15 +00:00
query.go internal/lsp: improve link in documentation on hover 2019-12-12 22:39:21 +00:00
references.go internal/lsp: propagate errors from find references 2020-01-09 21:23:09 +00:00
rename.go internal/lsp/cmd: don't create .orig files for rename by default 2019-11-19 21:08:41 +00:00
serve.go internal/lsp, internal/tool: clean up command line of gopls 2019-12-16 17:36:52 +00:00
signature.go tools/gopls: add cmd support for signature 2019-10-31 22:07:37 +00:00
suggested_fix.go internal/lsp: fix the return type of CodeAction() 2019-11-19 17:57:05 +00:00
symbols.go internal/lsp/cmd: fix documentation 2020-01-02 17:13:01 +00:00