1
0
mirror of https://github.com/golang/go synced 2024-11-05 16:16:11 -07:00
go/internal/lsp/testdata/unused
Josh Baum 6d307edf52 internal/lsp: support extract function
Extract function is a code action, similar to extract variable. After
highlighting a selection, if valid, the lightbulb appears to trigger
extraction. The current implementation does not allow users to
extract selections with a return statement.

Updates golang/go#37170

Change-Id: I5fc3b19cf7dbca4407ecf0cc37017661223614d1
Reviewed-on: https://go-review.googlesource.com/c/tools/+/241957
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Run-TryBot: Josh Baum <joshbaum@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-07-20 18:55:41 +00:00
..
modules/example.com/extramodule/pkg go/packages/packagestest: do not overwrite existing go.mod file 2020-02-06 15:23:23 +00:00
primarymod internal/lsp/cmd: improve flexibility of suggested fixes 2020-03-06 14:31:35 +00:00
summary.txt.golden internal/lsp: support extract function 2020-07-20 18:55:41 +00:00