Skip to content

Commit ba15c2d

Browse files
committed
Properly update tree collapse all enablement
Fixes microsoft#134762
1 parent da0d9c4 commit ba15c2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/browser/parts/views/treeView.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ abstract class AbstractTreeView extends Disposable implements ITreeView {
288288
}
289289
};
290290
if (this._dataProvider.onDidChangeEmpty) {
291-
this._register(this._dataProvider.onDidChangeEmpty(() => this._onDidChangeWelcomeState.fire()));
291+
this._register(this._dataProvider.onDidChangeEmpty(() => {
292+
this.updateCollapseAllToggle();
293+
this._onDidChangeWelcomeState.fire();
294+
}));
292295
}
293296
this.updateMessage();
294297
this.refresh();

0 commit comments

Comments
 (0)