mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 10:29:35 +03:00
Use path list generated during entry reload of a refresh request
This commit is contained in:
parent
2bc7be9a76
commit
0f34af50a8
@ -2523,7 +2523,15 @@ impl BackgroundScanner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn process_refresh_request(&self, paths: Vec<PathBuf>, barrier: barrier::Sender) -> bool {
|
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))
|
self.send_status_update(false, Some(barrier))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user