mirror of
https://github.com/golang/go
synced 2024-11-19 04:04:47 -07:00
114c575556
Support textDocument/foldingRange request. Provide folding ranges for multiline comment blocks, declarations, block statements, field lists, case clauses, and call expressions. Fixes golang/go#32987 Change-Id: I9c76e850ffa0e5bb65bee273d8ee40577c342f92 Reviewed-on: https://go-review.googlesource.com/c/tools/+/192257 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
18 lines
198 B
Go
18 lines
198 B
Go
package folding //@fold("package")
|
|
|
|
import (
|
|
_ "fmt"
|
|
_ "log"
|
|
)
|
|
|
|
import _ "os"
|
|
|
|
// bar is a function.
|
|
// With a multiline doc comment.
|
|
func bar() string {
|
|
return `
|
|
this string
|
|
is not indented`
|
|
|
|
}
|