go/internal/lsp/testdata/extract
Suzy Mueller 6f2254e651 internal/lsp: adjust extract function range if block statement
If the selected region is a block statement, gopls
does not return a valid function extraction. This
change adjusts the range to be the statements inside
of the selected block statement.

Fixes golang/go#48963

Change-Id: I9b1fb5005f961f30c1fa0333cd1f2050ed5eedef
Reviewed-on: https://go-review.googlesource.com/c/tools/+/357615
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2021-10-22 02:18:41 +00:00
..
extract_function internal/lsp: adjust extract function range if block statement 2021-10-22 02:18:41 +00:00
extract_method internal/lsp: add extract to method code action 2021-07-23 18:08:39 +00:00
extract_variable internal/lsp: change generated variable names to be more verbose 2021-06-09 14:15:55 +00:00