Skip to content

Commit bbd14fc

Browse files
Make Collapse/Expand All button of Search tree initialize correctly (fix microsoft#204316) (microsoft#205235)
1 parent e6a59ec commit bbd14fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/search/browser/searchView.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ export class SearchView extends ViewPane {
901901
const updateHasSomeCollapsible = () => this.toggleCollapseStateDelayer.trigger(() => this.hasSomeCollapsibleResultKey.set(this.hasSomeCollapsible()));
902902
updateHasSomeCollapsible();
903903
this._register(this.tree.onDidChangeCollapseState(() => updateHasSomeCollapsible()));
904+
this._register(this.tree.onDidChangeModel(() => updateHasSomeCollapsible()));
904905

905906
this._register(Event.debounce(this.tree.onDidOpen, (last, event) => event, DEBOUNCE_DELAY, true)(options => {
906907
if (options.element instanceof Match) {

0 commit comments

Comments
 (0)