File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
plugins/hls-code-range-plugin/test/Ide/Plugin Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,16 @@ testTree =
82
82
] CodeKindRegion )
83
83
[FoldingRange 1 (Just 1 ) 5 (Just 10 ) (Just FoldingRangeRegion ),
84
84
FoldingRange 1 (Just 2 ) 3 (Just 6 ) (Just FoldingRangeRegion ),
85
- FoldingRange 3 (Just 7 ) 5 (Just 10 ) (Just FoldingRangeRegion )]
85
+ FoldingRange 3 (Just 7 ) 5 (Just 10 ) (Just FoldingRangeRegion )],
86
+
87
+ -- Single line
88
+ testCase " Test Single Line" $ check
89
+ (mkCodeRange (Position 1 0 ) (Position 1 15 ) [] CodeKindRegion )
90
+ [FoldingRange 1 (Just 0 ) 1 (Just 15 ) (Just FoldingRangeRegion )],
91
+
92
+ -- MultiLine imports
93
+ testCase " MultiLine Imports" $ check
94
+ (mkCodeRange (Position 1 0 ) (Position 5 15 ) [] CodeKindImports )
95
+ [FoldingRange 1 (Just 0 ) 5 (Just 15 ) (Just FoldingRangeImports )]
86
96
]
87
97
]
You can’t perform that action at this time.
0 commit comments