1
0
mirror of https://github.com/golang/go synced 2024-11-06 02:26:17 -07:00
go/internal/lsp/mod
Rebecca Stambler 3c1b287bbd internal/lsp: await the initial workspace load in ModHandle
ModHandle races with the initial workspace load if the go.mod file does
not yet exist. We should await for the initial workspace load to
complete before proceeding with update codelenses, etc.

Part of trying to figure out the flakes in golang/go#39504.
Also a few staticcheck fixes, and fix the Windows line endings in
fill_struct.go, because `git gofmt` complains.

Change-Id: Ide21a47137390792d1afb924740cff0bb6f0b764
Reviewed-on: https://go-review.googlesource.com/c/tools/+/237419
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-06-12 18:21:55 +00:00
..
testdata/unchanged internal/lsp/tests: fix reset of golden files 2020-02-19 14:42:13 +00:00
code_lens.go internal/lsp: await the initial workspace load in ModHandle 2020-06-12 18:21:55 +00:00
diagnostics.go internal/lsp: read files eagerly 2020-06-11 22:11:59 +00:00
format.go internal/lsp: await the initial workspace load in ModHandle 2020-06-12 18:21:55 +00:00
hover.go internal/lsp: await the initial workspace load in ModHandle 2020-06-12 18:21:55 +00:00
mod_test.go internal/lsp: fix errors found by staticcheck 2020-03-19 19:20:54 +00:00