From 23601454fe3467eccdcc6393145bfd0858bd84cb Mon Sep 17 00:00:00 2001 From: Ayomide Bamidele Date: Mon, 29 Mar 2021 11:49:14 +0100 Subject: New FoldKinds - Consts, Statics --- crates/ide/src/folding_ranges.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/ide/src/folding_ranges.rs b/crates/ide/src/folding_ranges.rs index 379ee5650..1dd37483f 100644 --- a/crates/ide/src/folding_ranges.rs +++ b/crates/ide/src/folding_ranges.rs @@ -17,6 +17,8 @@ pub enum FoldKind { Block, ArgList, Region, + Consts, + Statics, } #[derive(Debug)] @@ -250,6 +252,8 @@ mod tests { FoldKind::Block => "block", FoldKind::ArgList => "arglist", FoldKind::Region => "region", + FoldKind::Consts => "consts", + FoldKind::Statics => "statics" }; assert_eq!(kind, &attr.unwrap()); } @@ -472,7 +476,7 @@ const SECOND_CONST: &str = "second"; fn fold_consecutive_static() { check( r#" -static FIRST_STATIC: &str = "first"; +static FIRST_STATIC: &str = "first"; static SECOND_STATIC: &str = "second"; "#, ) -- cgit v1.2.3