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 91b2f0b commit aa09aa3Copy full SHA for aa09aa3
crates/ra_ide/src/folding_ranges.rs
@@ -84,7 +84,7 @@ fn fold_kind(kind: SyntaxKind) -> Option<FoldKind> {
84
match kind {
85
COMMENT => Some(FoldKind::Comment),
86
USE_ITEM => Some(FoldKind::Imports),
87
- ARG_LIST => Some(FoldKind::ArgList),
+ ARG_LIST | PARAM_LIST => Some(FoldKind::ArgList),
88
RECORD_FIELD_DEF_LIST
89
| RECORD_FIELD_PAT_LIST
90
| RECORD_FIELD_LIST
@@ -383,6 +383,18 @@ fn main() <fold block>{
383
const _: S = S <fold block>{
384
385
}</fold>;
386
+"#,
387
+ )
388
+ }
389
+
390
+ #[test]
391
+ fn fold_multiline_params() {
392
+ check(
393
+ r#"
394
+fn foo<fold arglist>(
395
+ x: i32,
396
+ y: String,
397
+)</fold> {}
398
"#,
399
)
400
}
0 commit comments