Add UI feedback for checkpoint restoration (#27203)

Release Notes:

- N/A

Co-authored-by: Agus Zubiaga <hi@aguz.me>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
Antonio Scandurra
2025-03-20 16:35:44 +00:00
committed by GitHub
co-authored by Agus Zubiaga Bennet Bo Fenner
parent f365b80814
commit 7feb50fafe
3 changed files with 113 additions and 24 deletions
+2 -1
View File
@@ -542,7 +542,8 @@ impl GitStore {
let mut tasks = Vec::new();
for (dot_git_abs_path, checkpoint) in checkpoint.checkpoints_by_dot_git_abs_path {
if let Some(repository) = repositories_by_dot_git_abs_path.get(&dot_git_abs_path) {
tasks.push(repository.read(cx).restore_checkpoint(checkpoint));
let restore = repository.read(cx).restore_checkpoint(checkpoint);
tasks.push(async move { restore.await? });
}
}
cx.background_spawn(async move {