aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-26 12:49:08 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-26 12:49:08 +0000
commit3feaf2a008be289dc4091f25e0925d0f427d6b65 (patch)
treec1a648b0103d05853f109d7d08d88f8c94e8fa5c /crates/ra_lsp_server
parent05d0c493c9a94bb6cd4db816fa3bd88d8c389125 (diff)
parentb9ca8ab868a051fca47462113490433a5085d3c8 (diff)
Merge #659
659: Fold blocks of mod items r=matklad a=eulerdisk Fixes #572 As requested, we ignore `mod`s with a visibility specifier. Co-authored-by: Andrea Pretto <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index c0fe0216d..8ea9edc84 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -369,6 +369,7 @@ pub fn handle_folding_range(
369 let kind = match fold.kind { 369 let kind = match fold.kind {
370 FoldKind::Comment => Some(FoldingRangeKind::Comment), 370 FoldKind::Comment => Some(FoldingRangeKind::Comment),
371 FoldKind::Imports => Some(FoldingRangeKind::Imports), 371 FoldKind::Imports => Some(FoldingRangeKind::Imports),
372 FoldKind::Mods => None,
372 FoldKind::Block => None, 373 FoldKind::Block => None,
373 }; 374 };
374 let range = fold.range.conv_with(&line_index); 375 let range = fold.range.conv_with(&line_index);