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 f6702dd commit 2360145Copy full SHA for 2360145
crates/ide/src/folding_ranges.rs
@@ -17,6 +17,8 @@ pub enum FoldKind {
17
Block,
18
ArgList,
19
Region,
20
+ Consts,
21
+ Statics,
22
}
23
24
#[derive(Debug)]
@@ -250,6 +252,8 @@ mod tests {
250
252
FoldKind::Block => "block",
251
253
FoldKind::ArgList => "arglist",
254
FoldKind::Region => "region",
255
+ FoldKind::Consts => "consts",
256
+ FoldKind::Statics => "statics"
257
};
258
assert_eq!(kind, &attr.unwrap());
259
@@ -472,7 +476,7 @@ const SECOND_CONST: &str = "second";</fold>
472
476
fn fold_consecutive_static() {
473
477
check(
474
478
r#"
475
-<fold consts>static FIRST_STATIC: &str = "first";
479
+<fold statics>static FIRST_STATIC: &str = "first";
480
static SECOND_STATIC: &str = "second";</fold>
481
"#,
482
)
0 commit comments