diff options
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 390c66dfc..b55d45cd3 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -305,18 +305,12 @@ fn loop_turn( | |||
305 | } | 305 | } |
306 | } | 306 | } |
307 | } | 307 | } |
308 | vfs::loader::Message::Progress { n_entries_total, n_entries_done } => { | 308 | vfs::loader::Message::Progress { n_total, n_done } => { |
309 | if n_entries_done == n_entries_done { | 309 | if n_done == n_total { |
310 | loop_state.status = Status::Ready; | 310 | loop_state.status = Status::Ready; |
311 | became_ready = true; | 311 | became_ready = true; |
312 | } | 312 | } |
313 | report_progress( | 313 | report_progress(loop_state, &connection.sender, n_done, n_total, "roots scanned") |
314 | loop_state, | ||
315 | &connection.sender, | ||
316 | n_entries_done, | ||
317 | n_entries_total, | ||
318 | "roots scanned", | ||
319 | ) | ||
320 | } | 314 | } |
321 | }, | 315 | }, |
322 | Event::CheckWatcher(task) => on_check_task(task, global_state, task_sender)?, | 316 | Event::CheckWatcher(task) => on_check_task(task, global_state, task_sender)?, |