aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/to_proto.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-03-13 16:24:28 +0000
committerAleksey Kladov <[email protected]>2021-03-13 16:24:28 +0000
commita9c3e70443e1075917662c7b038be4338feb6938 (patch)
tree5928843ee3c86809794740e853bd21c2dcd0bf11 /crates/rust-analyzer/src/to_proto.rs
parentbcf2169e7d7c46276214cac627a70673b7676567 (diff)
fix folding range kind
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r--crates/rust-analyzer/src/to_proto.rs3
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);