1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/internal/lsp/analysis/undeclaredname
Rohan Challa 8f81e2e6d4 internal/lsp/analysis: add quickfix for undeclared variable
This change adds a quick fix for diagnostics that have an error message of the form "undeclared name: %s". It provides a quick fix to add a new variable with that name.

Updates golang/go#34644

Change-Id: I6534ee79d1770d1a62bac169c3c7e52e2443f39e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/222237
Run-TryBot: Rohan Challa <rohan@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-03-27 18:31:06 +00:00
..
testdata/src/a internal/lsp/analysis: add quickfix for undeclared variable 2020-03-27 18:31:06 +00:00
undeclared_test.go internal/lsp/analysis: add quickfix for undeclared variable 2020-03-27 18:31:06 +00:00
undeclared.go internal/lsp/analysis: add quickfix for undeclared variable 2020-03-27 18:31:06 +00:00