File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 312
312
"auto_reveal_entries" : true ,
313
313
// Whether to fold directories automatically and show compact folders
314
314
// (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
315
- "auto_fold_dirs" : false ,
315
+ "auto_fold_dirs" : true ,
316
316
/// Scrollbar-related settings
317
317
"scrollbar" : {
318
318
/// When to show the scrollbar in the project panel.
Original file line number Diff line number Diff line change @@ -5085,6 +5085,9 @@ mod tests {
5085
5085
Project :: init_settings ( cx) ;
5086
5086
5087
5087
cx. update_global :: < SettingsStore , _ > ( |store, cx| {
5088
+ store. update_user_settings :: < ProjectPanelSettings > ( cx, |project_panel_settings| {
5089
+ project_panel_settings. auto_fold_dirs = Some ( false ) ;
5090
+ } ) ;
5088
5091
store. update_user_settings :: < WorktreeSettings > ( cx, |worktree_settings| {
5089
5092
worktree_settings. file_scan_exclusions = Some ( Vec :: new ( ) ) ;
5090
5093
} ) ;
@@ -5102,6 +5105,15 @@ mod tests {
5102
5105
crate :: init ( ( ) , cx) ;
5103
5106
workspace:: init ( app_state. clone ( ) , cx) ;
5104
5107
Project :: init_settings ( cx) ;
5108
+
5109
+ cx. update_global :: < SettingsStore , _ > ( |store, cx| {
5110
+ store. update_user_settings :: < ProjectPanelSettings > ( cx, |project_panel_settings| {
5111
+ project_panel_settings. auto_fold_dirs = Some ( false ) ;
5112
+ } ) ;
5113
+ store. update_user_settings :: < WorktreeSettings > ( cx, |worktree_settings| {
5114
+ worktree_settings. file_scan_exclusions = Some ( Vec :: new ( ) ) ;
5115
+ } ) ;
5116
+ } ) ;
5105
5117
} ) ;
5106
5118
}
5107
5119
You can’t perform that action at this time.
0 commit comments