go/internal/lsp/regtest
Heschi Kreinick d94536333c internal/lsp/cache: don't always type check in default mode
CL 248380 forced all type checking to be in the default workspace mode.
In that CL, I said I couldn't think of any features that would break. It
appears I didn't think very hard. Navigation features inside of
dependencies are something I use all the time and they broke.

Reintroduce the ability to get packages in a particular mode, and make
it convenient to get them in all relevant modes. Update some critical
features to do so, and add regression tests.

Fixes golang/go#40809.

Change-Id: I96279f4ff994203694629ea872795246c410b206
Reviewed-on: https://go-review.googlesource.com/c/tools/+/249120
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-08-19 19:22:15 +00:00
..
codelens_test.go internal/lsp/mod: add go mod vendor and go mod tidy lenses 2020-08-18 00:58:47 +00:00
definition_test.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +00:00
diagnostics_test.go internal/lsp: improve handling of non-Go folders 2020-08-17 19:03:02 +00:00
doc.go internal/lsp/regtest: add expository package documentation 2020-04-28 21:10:48 +00:00
env.go internal/lsp: improve handling of non-Go folders 2020-08-17 19:03:02 +00:00
env_test.go internal/lsp: use the token supplied by the client for progress 2020-08-10 15:15:12 +00:00
fix_test.go internal/lsp: move fillstruct suggested fixes out of analysis 2020-07-20 20:42:44 +00:00
formatting_test.go gopls, internal/lsp: support an extra formatting hook for gofumpt 2020-07-13 21:42:47 +00:00
generate_test.go internal/lsp/regtest: add support for testing generate commands 2020-05-04 19:25:30 +00:00
imports_test.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
link_test.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
modfile_test.go internal/lsp: add errors for missing modules that don't map to an import 2020-07-24 00:18:24 +00:00
references_test.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +00:00
reg_test.go internal/lsp/regtest: simpler way to invert options 2020-07-16 18:20:50 +00:00
runner.go internal/lsp: add a configuration to limit workspace scope to root URI 2020-08-11 01:57:04 +00:00
shared_test.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
stress_test.go internal/lsp/regtest: add a simple stress test 2020-07-23 23:37:47 +00:00
symbol_helper_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
symbol_test.go internal/lsp/source: add a new symbolStyle configuration option 2020-06-26 17:13:37 +00:00
unix_test.go internal/lsp: lift env out of the sandbox into the editor 2020-07-23 21:58:45 +00:00
vendor_test.go internal/lsp/regtest: add run options to support stress testing 2020-07-23 23:37:37 +00:00
watch_test.go internal/lsp: invalidate all packages on go.mod file changes 2020-07-31 06:09:45 +00:00
workspace_test.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +00:00
wrappers.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +00:00