diff options
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 9ca0915b9..5736875d3 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -484,7 +484,8 @@ pub(crate) fn folding_range( | |||
484 | let kind = match fold.kind { | 484 | let kind = match fold.kind { |
485 | FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment), | 485 | FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment), |
486 | FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports), | 486 | FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports), |
487 | FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Region => None, | 487 | FoldKind::Region => Some(lsp_types::FoldingRangeKind::Region), |
488 | FoldKind::Mods | FoldKind::Block | FoldKind::ArgList => None, | ||
488 | }; | 489 | }; |
489 | 490 | ||
490 | let range = range(line_index, fold.range); | 491 | let range = range(line_index, fold.range); |