diff options
author | Lukas Wirth <[email protected]> | 2021-04-07 23:05:08 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-04-07 23:12:11 +0100 |
commit | 4b555ab1d99a8f6cacf4987fe85e1c8b5dee7262 (patch) | |
tree | dd8efec02d078aa255f44c1f4d9d1e14e50ed7ca /crates/rust-analyzer/src/to_proto.rs | |
parent | 3191a93185b34c6deebca2aad0584d2840ad6d43 (diff) |
Emit folding ranges for multiline array literals
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-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 c3820944b..2ac31d981 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -497,7 +497,8 @@ pub(crate) fn folding_range( | |||
497 | | FoldKind::Block | 497 | | FoldKind::Block |
498 | | FoldKind::ArgList | 498 | | FoldKind::ArgList |
499 | | FoldKind::Consts | 499 | | FoldKind::Consts |
500 | | FoldKind::Statics => None, | 500 | | FoldKind::Statics |
501 | | FoldKind::Array => None, | ||
501 | }; | 502 | }; |
502 | 503 | ||
503 | let range = range(line_index, fold.range); | 504 | let range = range(line_index, fold.range); |