mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
Use path list generated during entry reload of a refresh request
This commit is contained in:
parent
2bc7be9a76
commit
0f34af50a8
1 changed files with 9 additions and 1 deletions
|
@ -2523,7 +2523,15 @@ impl BackgroundScanner {
|
|||
}
|
||||
|
||||
async fn process_refresh_request(&self, paths: Vec<PathBuf>, barrier: barrier::Sender) -> bool {
|
||||
self.reload_entries_for_paths(paths, None).await;
|
||||
if let Some(mut paths) = self.reload_entries_for_paths(paths, None).await {
|
||||
paths.sort_unstable();
|
||||
util::extend_sorted(
|
||||
&mut self.prev_state.lock().event_paths,
|
||||
paths,
|
||||
usize::MAX,
|
||||
Ord::cmp,
|
||||
);
|
||||
}
|
||||
self.send_status_update(false, Some(barrier))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue