go/gopls/internal/regtest
Suzy Mueller 2f04713366 gopls: fix out of bounds bug in extract
There was a bug where the code would try to access an out of bounds
index when trimming extra space and comments in extract. This change
also adds a regtest for extract.

Fixes golang/go#55271

Change-Id: I7da716a6a68a9678011abf15def47acdea0b33fe
Reviewed-on: https://go-review.googlesource.com/c/tools/+/432135
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-09-21 16:48:39 +00:00
..
bench gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
codelens gopls: add codelens to reset upgrade diagnostics 2022-09-12 15:41:56 +00:00
completion gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
debug gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
diagnostics gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
inlayhints gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
misc gopls: fix out of bounds bug in extract 2022-09-21 16:48:39 +00:00
modfile gopls/internal/lsp/source: make "chatty" diagnostics the default 2022-09-12 18:14:22 +00:00
template gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
watch gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00
workspace gopls: migrate internal/lsp to gopls/internal/lsp 2022-09-07 16:44:44 +00:00