diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-05 22:14:12 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-05 22:14:12 +0100 |
commit | c3596371d841ebb949dc8b99acc3bc902e4d808a (patch) | |
tree | e8fe32621f287079ca2e35781e6373a2acb9e5c0 /crates/rust-analyzer/src/to_proto.rs | |
parent | b10d5e342c4ff31b50d738c37c726274c692956b (diff) | |
parent | c2cf34db90e48de6e8a10da7959a4c49f95e1ff6 (diff) |
Merge #8674
8674: fix for #8664: Emit folding ranges for multi-line where clauses r=matklad a=m5tfi
#8664
I added a test that assert folding multi-line where clauses while leaving single lined one. Please, let me know if the code needs further improvements.
Co-authored-by: m5tfi <[email protected]>
Diffstat (limited to 'crates/rust-analyzer/src/to_proto.rs')
-rw-r--r-- | crates/rust-analyzer/src/to_proto.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 1d27aa7b3..ecf6fd12f 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs | |||
@@ -524,6 +524,7 @@ pub(crate) fn folding_range( | |||
524 | | FoldKind::ArgList | 524 | | FoldKind::ArgList |
525 | | FoldKind::Consts | 525 | | FoldKind::Consts |
526 | | FoldKind::Statics | 526 | | FoldKind::Statics |
527 | | FoldKind::WhereClause | ||
527 | | FoldKind::Array => None, | 528 | | FoldKind::Array => None, |
528 | }; | 529 | }; |
529 | 530 | ||