go/gopls/internal/lsp/testdata/extract
Suzy Mueller fdf581fdab internal/lsp: allow extract func ranges to begin/end with comments
CanExtract strips of the whitespace on either end of the range in
order to get an exact range to extract to function. We can do the
same thing for comments by moving adjusting the range if the start
or end positions contain the position.

Updates golang/go#37170
Fixes golang/go#54816

Change-Id: I3508c822434400f084a273730380c89611803e97
Reviewed-on: https://go-review.googlesource.com/c/tools/+/351989
Reviewed-by: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-09-19 18:18:22 +00:00
..
extract_function internal/lsp: allow extract func ranges to begin/end with comments 2022-09-19 18:18:22 +00:00
extract_method gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
extract_variable gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00