Fix some syncing issues with git statuses (#25535)
Like the real app, this one infinite loops if you have a diff in an UnsharedFile. Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
co-authored by
Max Brunsfeld
parent
88baf171c3
commit
08539b32d0
@@ -88,6 +88,7 @@ pub enum Message {
|
||||
Fetch(GitRepo),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum GitEvent {
|
||||
ActiveRepositoryChanged,
|
||||
FileSystemUpdated,
|
||||
|
||||
@@ -377,7 +377,7 @@ impl WorktreeStore {
|
||||
match event {
|
||||
worktree::Event::UpdatedEntries(changes) => {
|
||||
cx.emit(WorktreeStoreEvent::WorktreeUpdatedEntries(
|
||||
worktree.read(cx).id(),
|
||||
worktree_id,
|
||||
changes.clone(),
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user