We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e21dd commit 594252fCopy full SHA for 594252f
src/tools/rust-analyzer/crates/ide/src/folding_ranges.rs
@@ -360,6 +360,23 @@ mod tests {
360
}
361
362
363
+ #[test]
364
+ fn test_fold_func_with_multiline_param_list() {
365
+ check(
366
+ r#"
367
+<fold function>fn func<fold arglist>(
368
+ a: i32,
369
+ b: i32,
370
+ c: i32,
371
+)</fold> <fold block>{
372
+
373
374
375
+}</fold></fold>
376
+"#,
377
+ );
378
+ }
379
380
#[test]
381
fn test_fold_comments() {
382
check(
@@ -572,10 +589,10 @@ const _: S = S <fold block>{
572
589
fn fold_multiline_params() {
573
590
574
591
r#"
575
-fn foo<fold arglist>(
592
+<fold function>fn foo<fold arglist>(
576
593
x: i32,
577
594
y: String,
578
-) {}</fold>
595
+)</fold> {}</fold>
579
596
"#,
580
597
)
581
598
0 commit comments