go/gopls/internal
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
..
coverage gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
govulncheck gopls/internal/govulncheck: sync x/vuln@62b0186 2022-09-02 15:10:33 +00:00
hooks gopls/internal/lsp/source: remove Govulncheck from Hooks 2022-09-12 13:57:24 +00:00
lsp internal/lsp: allow extract func ranges to begin/end with comments 2022-09-19 18:18:22 +00:00
regtest gopls/internal/lsp/source: make "chatty" diagnostics the default 2022-09-12 18:14:22 +00:00
vulncheck gopls/internal/lsp/source: remove Govulncheck from Hooks 2022-09-12 13:57:24 +00:00
migrate.sh gopls/internal/migrate.sh: a script to migrate internal/lsp to gopls/ 2022-09-07 14:10:36 +00:00