aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/to_proto.rs
diff options
context:
space:
mode:
authorLuciano Bestia <[email protected]>2021-01-18 18:45:42 +0000
committerLuciano Bestia <[email protected]>2021-01-18 18:45:42 +0000
commit9f1d341ee9bf399fa8fa2a5d2fb5f91e1b319702 (patch)
tree2aef832786e9d6eaccfe7cf566113fd35421a46a /crates/rust-analyzer/src/to_proto.rs
parenta1c72451bb8b657f4e5a015428112090402de106 (diff)
added region folding
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r--crates/rust-analyzer/src/to_proto.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs
index 1ff2d3fea..c903ab523 100644
--- a/crates/rust-analyzer/src/to_proto.rs
+++ b/crates/rust-analyzer/src/to_proto.rs
@@ -465,7 +465,7 @@ pub(crate) fn folding_range(
465 let kind = match fold.kind { 465 let kind = match fold.kind {
466 FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment), 466 FoldKind::Comment => Some(lsp_types::FoldingRangeKind::Comment),
467 FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports), 467 FoldKind::Imports => Some(lsp_types::FoldingRangeKind::Imports),
468 FoldKind::Mods | FoldKind::Block | FoldKind::ArgList => None, 468 FoldKind::Mods | FoldKind::Block | FoldKind::ArgList | FoldKind::Region => None,
469 }; 469 };
470 470
471 let range = range(line_index, fold.range); 471 let range = range(line_index, fold.range);