Skip to content

Commit 62cb62c

Browse files
authored
1 parent b8b5a4a commit 62cb62c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/vs/workbench/contrib/extensions/browser/extensionsViews.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ export class ExtensionsListView extends ViewPane {
10041004
this.updateSize();
10051005
}
10061006

1007-
private updateSize() {
1007+
protected updateSize() {
10081008
if (this.options.flexibleHeight) {
10091009
this.maximumBodySize = this.list?.model.length ? Number.POSITIVE_INFINITY : 0;
10101010
this.storageService.store(`${this.id}.size`, this.list?.model.length || 0, StorageScope.PROFILE, StorageTarget.MACHINE);
@@ -1228,10 +1228,12 @@ export class OutdatedExtensionsView extends ExtensionsListView {
12281228
if (ExtensionsListView.isSearchExtensionUpdatesQuery(query)) {
12291229
query = query.replace('@updates', '@outdated');
12301230
}
1231+
return super.show(query.trim());
1232+
}
12311233

1232-
const model = await super.show(query.trim());
1233-
this.setExpanded(model.length > 0);
1234-
return model;
1234+
protected override updateSize() {
1235+
super.updateSize();
1236+
this.setExpanded(this.count() > 0);
12351237
}
12361238

12371239
}

0 commit comments

Comments
 (0)