Skip to content

Commit 44c5819

Browse files
committed
fix: ignoring children if root fails to provide folding ranges
1 parent e8ee9f9 commit 44c5819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hls-code-range-plugin/src/Ide/Plugin/CodeRange.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ findFoldingRanges r@(CodeRange _ children _) =
157157
let frChildren :: [FoldingRange] = concat $ V.toList $ fmap findFoldingRanges children
158158
in case createFoldingRange r of
159159
Just x -> x:frChildren
160-
Nothing -> []
160+
Nothing -> frChildren
161161

162162
-- | Parses code range to folding range
163163
createFoldingRange :: CodeRange -> Maybe FoldingRange

0 commit comments

Comments
 (0)