1
0
mirror of https://github.com/golang/go synced 2024-11-05 20:36:10 -07:00
go/internal/lsp/mod
Rebecca Stambler 6c6fd98e38 internal/lsp: fix panic in computing diagnostics for module
We were returning empty diagnostics for an empty file.

Fixes golang/go#39696.

Change-Id: Idfd50980f4bf771f76ad7b7fb6180a5f712a92bf
Reviewed-on: https://go-review.googlesource.com/c/tools/+/239040
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-06-19 20:49:21 +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: use a new temporary go.mod for every go list call 2020-06-18 02:37:23 +00:00
diagnostics.go internal/lsp: fix panic in computing diagnostics for module 2020-06-19 20:49:21 +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: honor GOPRIVATE in documentLinks and go.mod hovers 2020-06-18 13:42:42 +00:00
mod_test.go internal/lsp: use a new temporary go.mod for every go list call 2020-06-18 02:37:23 +00:00