Skip to content

Commit 2263a61

Browse files
xieyuschengopherbot
authored andcommitted
gopls/internal/test/marker: add a folding ranges test case
This CL adds a test case for folding_range, and demonstrates gopls current reports folding range correctly. So the issue may not caused by gopls. Updates: golang/go#73735 Change-Id: I60e7a649ee10a4ffecb5468981e80c96f0ada455 Reviewed-on: https://go-review.googlesource.com/c/tools/+/673395 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Commit-Queue: Alan Donovan <[email protected]> Auto-Submit: Alan Donovan <[email protected]>
1 parent 5c7400c commit 2263a61

File tree

1 file changed

+10
-0
lines changed
  • gopls/internal/test/marker/testdata/foldingrange

1 file changed

+10
-0
lines changed

gopls/internal/test/marker/testdata/foldingrange/a.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ func _(
131131
c int,
132132
) {
133133
}
134+
135+
func _() { // comment
136+
137+
}
138+
134139
-- @raw --
135140
package folding //@foldingrange(raw)
136141

@@ -262,3 +267,8 @@ func _(<52 kind="">
262267
c int,
263268
</52>) {<53 kind="">
264269
</53>}
270+
271+
func _() {<54 kind=""> // comment
272+
273+
</54>}
274+

0 commit comments

Comments
 (0)