Skip to content

Commit e23ca3d

Browse files
authored
No tree view with id 'github:compareChanges' registered. (#3555)
Fixes #3549
1 parent 1e07267 commit e23ca3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/view/compareChangesTreeDataProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ export class CompareChangesTreeProvider implements vscode.TreeDataProvider<TreeN
144144

145145
if (!data.files.length) {
146146
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 [];
147149
} else {
148150
this._view.message = undefined;
149151
}
@@ -164,7 +166,9 @@ export class CompareChangesTreeProvider implements vscode.TreeDataProvider<TreeN
164166
}
165167
}
166168

169+
private _isDisposed: boolean = false;
167170
dispose() {
171+
this._isDisposed = true;
168172
this._disposables.forEach(d => d.dispose());
169173
this._contentProvider = undefined;
170174
}

0 commit comments

Comments
 (0)