mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
parent
154ab4206d
commit
27c071f702
2 changed files with 60 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue