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 17:35:44 +01:00 committed by GitHub
parent f365b80814
commit 7feb50fafe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 113 additions and 24 deletions

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 {