@@ -391,14 +391,6 @@ config_data! {
391
391
/// Enables the experimental support for interpreting tests.
392
392
interpret_tests: bool = "false" ,
393
393
394
- /// Join lines merges consecutive declaration and initialization of an assignment.
395
- joinLines_joinAssignments: bool = "true" ,
396
- /// Join lines inserts else between consecutive ifs.
397
- joinLines_joinElseIf: bool = "true" ,
398
- /// Join lines removes trailing commas.
399
- joinLines_removeTrailingComma: bool = "true" ,
400
- /// Join lines unwraps trivial blocks.
401
- joinLines_unwrapTrivialBlock: bool = "true" ,
402
394
403
395
404
396
/// Whether to show `Debug` lens. Only applies when
@@ -571,6 +563,16 @@ config_data! {
571
563
imports_prefer_no_std: bool = "false" ,
572
564
/// The path structure for newly inserted paths to use.
573
565
imports_prefix: ImportPrefixDef = "\" plain\" " ,
566
+
567
+
568
+ /// Join lines merges consecutive declaration and initialization of an assignment.
569
+ joinLines_joinAssignments: bool = "true" ,
570
+ /// Join lines inserts else between consecutive ifs.
571
+ joinLines_joinElseIf: bool = "true" ,
572
+ /// Join lines removes trailing commas.
573
+ joinLines_removeTrailingComma: bool = "true" ,
574
+ /// Join lines unwraps trivial blocks.
575
+ joinLines_unwrapTrivialBlock: bool = "true" ,
574
576
}
575
577
}
576
578
@@ -719,6 +721,15 @@ impl<'a> LocalConfigView<'a> {
719
721
fn experimental ( & self , index : & ' static str ) -> bool {
720
722
try_or_def ! ( self . caps. experimental. as_ref( ) ?. get( index) ?. as_bool( ) ?)
721
723
}
724
+
725
+ pub fn join_lines ( & self ) -> JoinLinesConfig {
726
+ JoinLinesConfig {
727
+ join_else_if : self . local . joinLines_joinElseIf ,
728
+ remove_trailing_comma : self . local . joinLines_removeTrailingComma ,
729
+ unwrap_trivial_blocks : self . local . joinLines_unwrapTrivialBlock ,
730
+ join_assignments : self . local . joinLines_joinAssignments ,
731
+ }
732
+ }
722
733
}
723
734
724
735
type ParallelCachePrimingNumThreads = u8 ;
@@ -1661,15 +1672,6 @@ impl Config {
1661
1672
self . experimental ( "snippetTextEdit" )
1662
1673
}
1663
1674
1664
- pub fn join_lines ( & self ) -> JoinLinesConfig {
1665
- JoinLinesConfig {
1666
- join_else_if : self . root_config . global . joinLines_joinElseIf ,
1667
- remove_trailing_comma : self . root_config . global . joinLines_removeTrailingComma ,
1668
- unwrap_trivial_blocks : self . root_config . global . joinLines_unwrapTrivialBlock ,
1669
- join_assignments : self . root_config . global . joinLines_joinAssignments ,
1670
- }
1671
- }
1672
-
1673
1675
pub fn call_info ( & self ) -> CallInfoConfig {
1674
1676
CallInfoConfig {
1675
1677
params_only : matches ! (
0 commit comments