formatting fix
This commit is contained in:
parent
a813062ed2
commit
8e11796dc5
2 changed files with 6 additions and 2 deletions
|
|
@ -268,7 +268,7 @@ mod tests {
|
|||
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…
Add table
Add a link
Reference in a new issue