Git/SCM - fix GC warnings (#235464)

This commit is contained in:
Ladislau Szomoru
2024-12-06 09:25:12 +01:00
committed by GitHub
parent 714dc6d804
commit 5addad41b0
3 changed files with 17 additions and 14 deletions

View File

@@ -986,7 +986,7 @@ export class Repository implements Disposable {
const actionButton = new ActionButton(this, this.commitCommandCenter, this.logger);
this.disposables.push(actionButton);
actionButton.onDidChange(() => this._sourceControl.actionButton = actionButton.button);
actionButton.onDidChange(() => this._sourceControl.actionButton = actionButton.button, this, this.disposables);
this._sourceControl.actionButton = actionButton.button;
const progressManager = new ProgressManager(this);