go/internal/lsp/cache
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
..
analysis.go internal/memoize: switch from GC-driven to explicit deletion 2020-08-10 19:02:17 +00:00
cache.go internal/memoize: switch from GC-driven to explicit deletion 2020-08-10 19:02:17 +00:00
check.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +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: replace ParseGoHandle with concrete data 2020-07-28 17:35:11 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +00:00
mod.go internal/lsp: fix bad `go mod tidy` quick fix title 2020-08-12 18:39:12 +00:00
mod_tidy.go internal/lsp: fix bad `go mod tidy` quick fix title 2020-08-12 18:39:12 +00:00
os_darwin.go internal/lsp: add a mutex around the view's options 2020-04-02 16:41:49 +00:00
os_windows.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00
parse.go internal/lsp/cache: trim ellipsis array literals 2020-08-12 23:16:40 +00:00
parse_test.go internal/lsp/cache: trim ellipsis array literals 2020-08-12 23:16:40 +00:00
pkg.go internal/lsp: fix a few staticcheck suggestions, some cleanup 2020-07-29 17:11:59 +00:00
session.go internal/lsp: improve handling of non-Go folders 2020-08-17 19:03:02 +00:00
snapshot.go internal/lsp/cache: don't always type check in default mode 2020-08-19 19:22:15 +00:00
view.go internal/lsp: improve handling of non-Go folders 2020-08-17 19:03:02 +00:00
view_test.go internal/lsp/cache: validate workspace path case 2020-03-27 19:55:53 +00:00