Fold blocks of mod items.

Fixes #572
This commit is contained in:
Andrea Pretto 2019-01-25 23:37:45 +01:00
parent 154ab4206d
commit 27c071f702
2 changed files with 60 additions and 1 deletions

View file

@ -369,6 +369,7 @@ pub fn handle_folding_range(
let kind = match fold.kind {
FoldKind::Comment => Some(FoldingRangeKind::Comment),
FoldKind::Imports => Some(FoldingRangeKind::Imports),
FoldKind::Mods => None,
FoldKind::Block => None,
};
let range = fold.range.conv_with(&line_index);