We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e07267 commit e23ca3dCopy full SHA for e23ca3d
src/view/compareChangesTreeDataProvider.ts
@@ -144,6 +144,8 @@ export class CompareChangesTreeProvider implements vscode.TreeDataProvider<TreeN
144
145
if (!data.files.length) {
146
this._view.message = `There are no commits between the base '${this.baseBranchName}' branch and the comparing '${this.compareBranchName}' branch`;
147
+ } else if (this._isDisposed) {
148
+ return [];
149
} else {
150
this._view.message = undefined;
151
}
@@ -164,7 +166,9 @@ export class CompareChangesTreeProvider implements vscode.TreeDataProvider<TreeN
164
166
165
167
168
169
+ private _isDisposed: boolean = false;
170
dispose() {
171
+ this._isDisposed = true;
172
this._disposables.forEach(d => d.dispose());
173
this._contentProvider = undefined;
174
0 commit comments