Fix staging/unstaging hunks remotely (#28560)

Fixes a regression introduced in
https://github.com/zed-industries/zed/pull/28377 where the pending hunks
didn't get cleared properly when staging/unstaging hunks remotely. I
didn't add new tests, because the fix was to simplify some code.

Release Notes:

- N/A
This commit is contained in:
Max Brunsfeld 2025-04-10 21:31:43 -07:00 committed by GitHub
parent ad39d3226f
commit 353ae2335b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 49 deletions

View file

@ -6967,7 +6967,7 @@ async fn test_staging_hunks_with_delayed_fs_event(cx: &mut gpui::TestAppContext)
});
}
#[gpui::test]
#[gpui::test(iterations = 25)]
async fn test_staging_random_hunks(
mut rng: StdRng,
executor: BackgroundExecutor,