@@ -444,7 +444,7 @@ impl GlobalState {
444
444
ProjectWorkspaceProgress :: End ( workspaces) => {
445
445
self . fetch_workspaces_queue . op_completed ( Some ( workspaces) ) ;
446
446
if let Err ( e) = self . fetch_workspace_error ( ) {
447
- tracing:: error!( "FetchWorkspaceError:\n {e}" )
447
+ tracing:: error!( "FetchWorkspaceError:\n {e}" ) ;
448
448
}
449
449
450
450
let old = Arc :: clone ( & self . workspaces ) ;
@@ -468,7 +468,7 @@ impl GlobalState {
468
468
BuildDataProgress :: End ( build_data_result) => {
469
469
self . fetch_build_data_queue . op_completed ( build_data_result) ;
470
470
if let Err ( e) = self . fetch_build_data_error ( ) {
471
- tracing:: error!( "FetchBuildDataError:\n {e}" )
471
+ tracing:: error!( "FetchBuildDataError:\n {e}" ) ;
472
472
}
473
473
474
474
self . switch_workspaces ( "fetched build data" . to_string ( ) ) ;
@@ -495,14 +495,14 @@ impl GlobalState {
495
495
}
496
496
}
497
497
}
498
- vfs:: loader:: Message :: Progress { n_total : 0 , .. } => { }
499
498
vfs:: loader:: Message :: Progress { n_total, n_done, config_version } => {
500
499
always ! ( config_version <= self . vfs_config_version) ;
501
500
502
501
self . vfs_progress_config_version = config_version;
503
502
self . vfs_progress_n_total = n_total;
504
503
self . vfs_progress_n_done = n_done;
505
504
505
+ // if n_total != 0 {
506
506
let state = if n_done == 0 {
507
507
Progress :: Begin
508
508
} else if n_done < n_total {
@@ -517,7 +517,8 @@ impl GlobalState {
517
517
Some ( format ! ( "{n_done}/{n_total}" ) ) ,
518
518
Some ( Progress :: fraction ( n_done, n_total) ) ,
519
519
None ,
520
- )
520
+ ) ;
521
+ // }
521
522
}
522
523
}
523
524
}
0 commit comments