mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 08:15:56 +01:00
Clear previous sync action before registering a new one in GitSyncCon… (#298898)
Clear previous sync action before registering a new one in GitSyncContribution
This commit is contained in:
committed by
GitHub
parent
49b4ea3cf6
commit
1b44525f0e
@@ -73,6 +73,7 @@ class GitSyncContribution extends Disposable implements IWorkbenchContribution {
|
||||
const behind = head.behind ?? 0;
|
||||
const hasSyncChanges = ahead > 0 || behind > 0;
|
||||
contextKey.set(hasSyncChanges);
|
||||
this._syncActionDisposable.clear();
|
||||
this._syncActionDisposable.value = registerSyncAction(behind, ahead, isSyncing, (syncing) => {
|
||||
this._isSyncing.set(syncing, undefined);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user