go/internal/lsp/testdata/folding
Suzy Mueller b9b845e62b internal/lsp: fix folding range for block comments
Block comments are a single comment that stretches across multiple
lines. The folding range code made assumptions that each comment
was a single line. This change fixes the folding range logic to check for multiline comments and adjust the folding range to start at
the end of the first line.

Fixes golang/go#46253
Fixes golang/vscode-go#1511

Change-Id: I902f6cda7547cb1f8b4cd447152c3cf29a691d3b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/325071
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-06-07 15:13:07 +00:00
..
a.go internal/lsp: fix folding range for block comments 2021-06-07 15:13:07 +00:00
a.go.golden internal/lsp: fix folding range for block comments 2021-06-07 15:13:07 +00:00
bad.go.golden internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00
bad.go.in internal/lsp: remove multi-module support in tests 2020-09-22 16:28:30 +00:00