mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 09:48:10 +00:00
Merge #7997
7997: fix folding range kind r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d453378569
1 changed files with 2 additions and 1 deletions
|
@ -484,7 +484,8 @@ pub(crate) fn folding_range(
|
|||
let kind = match fold.kind {
|
||||
FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment),
|
||||
FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports),
|
||||
FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Region => None,
|
||||
FoldKind::Region => Some(lsp_types::FoldingRangeKind::Region),
|
||||
FoldKind::Mods | FoldKind::Block | FoldKind::ArgList => None,
|
||||
};
|
||||
|
||||
let range = range(line_index, fold.range);
|
||||
|
|
Loading…
Reference in a new issue