go/internal/lsp/cache
Heschi Kreinick 7ee29554cc internal/lsp/cache: refactor and improve go get quick fixes
Generating go get quick fixes in a single place only made it harder to
get them right. Do it during diagnostics generation, as is the new
norm.

Also improve the user experience. When we fail to import a package
because one of its dependencies is missing, it makes more sense to run
go get on the package we tried to import, not the one that's missing:
that will download all of its missing dependencies if there happen to be
more.

Change-Id: Ib6a8140bccfafcb9f966d25639799dd4c7347c3d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/300072
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-03-09 19:56:34 +00:00
..
analysis.go internal/lsp: run type error analyzers as part of diagnostics 2021-03-03 21:51:40 +00:00
cache.go internal/lsp/cache: compare file size when invalidating file cache 2021-01-12 21:35:00 +00:00
check.go internal/lsp/cache: refactor and improve go get quick fixes 2021-03-09 19:56:34 +00:00
error_test.go internal/lsp/cache: split up sourceDiagnostics 2021-03-02 02:05:13 +00:00
errors.go internal/lsp/cache: refactor and improve go get quick fixes 2021-03-09 19:56:34 +00:00
imports.go internal/lsp/cache: fix panic in GOPATH mode 2021-01-07 18:21:03 +00:00
keys.go internal/lsp: decouple client and server debug 2020-06-11 13:49:48 +00:00
load.go internal/lsp/cache: refactor diagnostic suppression 2021-03-02 01:39:17 +00:00
mod.go internal/lsp: refactor go command error handling 2021-02-16 21:26:54 +00:00
mod_tidy.go internal/lsp: refactor go command error handling 2021-02-16 21:26:54 +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: refactor Go file parsing 2021-03-02 02:05:01 +00:00
parse_test.go internal/lsp/cache: trim ellipsis array literals 2020-08-12 23:16:40 +00:00
pkg.go internal/lsp: run type error analyzers as part of diagnostics 2021-03-03 21:51:40 +00:00
session.go internal/lsp: always return file handles for nonexistent files 2021-02-12 21:26:46 +00:00
snapshot.go all: recognize new error from go command when no go.mod is found 2021-03-04 22:10:16 +00:00
view.go internal/lsp: refactor go command error handling 2021-02-16 21:26:54 +00:00
view_test.go internal/lsp: refactor go command error handling 2021-02-16 21:26:54 +00:00
workspace.go internal/lsp/cache: only reload the workspace on saved changes 2020-12-23 22:53:30 +00:00
workspace_test.go internal/lsp/cache: compare file size when invalidating file cache 2021-01-12 21:35:00 +00:00