1
0
mirror of https://github.com/golang/go synced 2024-11-06 00:36:14 -07:00
go/internal/lsp/analysis/undeclaredname
Josh Baum 9c9572d6f9 internal/lsp: extract highlighted selection to variable
I add a code action that triggers upon request of the user. A variable
name is generated manually for the extracted code because the LSP does
not support a user's ability to provide a name.

Change-Id: Id1ec19b49562b7cfbc2cd416378bec9bd021d82f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/240182
Run-TryBot: Josh Baum <joshbaum@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-07-07 21:12:28 +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: extract highlighted selection to variable 2020-07-07 21:12:28 +00:00