1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:04:40 -07:00
go/internal/lsp
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
..
browser internal/lsp: add version and bug commands 2019-05-11 04:16:02 +00:00
cache internal/lsp: store workspace package IDs with package paths 2020-01-09 22:04:34 +00:00
cmd internal/lsp: store workspace package IDs with package paths 2020-01-09 22:04:34 +00:00
debug internal/lsp/debug: print the debug port 2019-12-18 04:04:34 +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: make golint happy 2019-12-23 18:17:04 +00:00
mod internal/lsp: add warning diagnostics for unused dependencies in go.mod files 2020-01-09 20:05:13 +00:00
protocol internal/lps/protocol: bring code.ts up to date with latest changes. 2019-12-19 18:45:41 +00:00
snippet all: fix broken links to LSP specification 2019-10-02 18:32:53 +00:00
source internal/lsp: store workspace package IDs with package paths 2020-01-09 22:04:34 +00:00
telemetry internal/lsp: load metadata for a single package ID, when needed 2019-12-30 21:09:35 +00:00
testdata internal/lsp/source: fix some invalid literal candidates 2020-01-08 20:36:44 +00:00
tests internal/imports,lsp: use callbacks for completion functions 2019-12-30 21:11:27 +00:00
code_action.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
command.go internal/lsp: add warning diagnostics for unused dependencies in go.mod files 2020-01-09 20:05:13 +00:00
completion_test.go internal/lsp: offer basic type conversion candidates 2019-12-12 22:41:01 +00:00
completion.go internal/lsp: sort by label after score 2019-12-30 21:11:21 +00:00
definition.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
diagnostics.go internal/lsp: allow diagnostics to be computed per-file or per-package 2020-01-09 21:49:23 +00:00
folding_range.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
format.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
general.go internal/lsp: parallelize initial workspace load 2020-01-07 18:15:18 +00:00
highlight.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
hover.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
implementation.go internal/lsp: refactor find-implementation handling 2019-12-23 22:59:19 +00:00
link.go internal/lsp: create links for golang/go#1234-style strings 2019-12-27 05:39:25 +00:00
lsp_test.go internal/lsp: allow diagnostics to be computed per-file or per-package 2020-01-09 21:49:23 +00:00
references.go internal/lsp: propagate errors from find references 2020-01-09 21:23:09 +00:00
rename.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
reset_golden.sh internal/lsp: fix regeneration of golden files 2019-09-25 13:16:59 +00:00
server.go internal/lsp: don't resend diagnostics if they are unchanged 2019-12-12 04:27:51 +00:00
signature_help.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
symbols.go internal/lsp: eliminate source.File type and move GetFile to snapshot 2019-12-19 20:51:25 +00:00
text_synchronization.go internal/lsp: stop requiring file kind when fetching a file 2020-01-09 21:19:36 +00:00
watched_files.go internal/lsp: refactor and document options 2019-12-27 05:17:27 +00:00
workspace.go internal/lsp: parallelize initial workspace load 2020-01-07 18:15:18 +00:00