mirror of
https://github.com/Microsoft/vscode
synced 2024-07-02 15:59:00 +00:00
Disposing a tree view while it's visible causes it to stay empty
Part of #212078
This commit is contained in:
parent
3af934ae56
commit
c819d1840c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user