Disposing a tree view while it's visible causes it to stay empty

Part of #212078
This commit is contained in:
Alex Ross 2024-05-06 11:55:07 +02:00
parent 3af934ae56
commit c819d1840c
No known key found for this signature in database
GPG Key ID: 89DDDBA66CBA7840

View File

@ -346,6 +346,9 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
set dataProvider(dataProvider: ITreeViewDataProvider | undefined) {
if (dataProvider) {
if (this.visible) {
this.activate();
}
const self = this;
this._dataProvider = new class implements ITreeViewDataProvider {
private _isEmpty: boolean = true;