formatting fix
This commit is contained in:
parent
a813062ed2
commit
8e11796dc5
@ -268,7 +268,7 @@ fn check(ra_fixture: &str) {
|
||||
FoldKind::ArgList => "arglist",
|
||||
FoldKind::Region => "region",
|
||||
FoldKind::Consts => "consts",
|
||||
FoldKind::Statics => "statics"
|
||||
FoldKind::Statics => "statics",
|
||||
};
|
||||
assert_eq!(kind, &attr.unwrap());
|
||||
}
|
||||
|
@ -492,7 +492,11 @@ pub(crate) fn folding_range(
|
||||
FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment),
|
||||
FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports),
|
||||
FoldKind::Region => Some(lsp_types::FoldingRangeKind::Region),
|
||||
FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Consts | FoldKind::Statics => None,
|
||||
FoldKind::Mods
|
||||
| FoldKind::Block
|
||||
| FoldKind::ArgList
|
||||
| FoldKind::Consts
|
||||
| FoldKind::Statics => None,
|
||||
};
|
||||
|
||||
let range = range(line_index, fold.range);
|
||||
|
Loading…
Reference in New Issue
Block a user