Fix a bug causing stale optimistic state in the git panel (#28588)

Release Notes:

- Fixed a bug that caused the staged status of files in the git panel to
be out of date in some cases.
This commit is contained in:
Cole Miller
2025-04-11 17:26:39 +00:00
committed by GitHub
parent 7caa2c2ea0
commit 66b3e03baa
3 changed files with 14 additions and 8 deletions
-6
View File
@@ -3796,12 +3796,6 @@ impl Repository {
updates_tx: Option<mpsc::UnboundedSender<DownstreamUpdate>>,
cx: &mut Context<Self>,
) {
self.paths_changed(
vec![git::repository::WORK_DIRECTORY_REPO_PATH.clone()],
updates_tx.clone(),
cx,
);
let this = cx.weak_entity();
let _ = self.send_keyed_job(
Some(GitJobKey::ReloadGitState),