Skip to content

Commit 4d7056f

Browse files
authored
1 parent 15d8d39 commit 4d7056f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface ExtensionsListViewOptions {
8585
}
8686

8787
interface IQueryResult {
88-
readonly model: IPagedModel<IExtension>;
88+
model: IPagedModel<IExtension>;
8989
readonly onDidChangeModel?: Event<IPagedModel<IExtension>>;
9090
readonly disposables: DisposableStore;
9191
}
@@ -264,7 +264,12 @@ export class ExtensionsListView extends ViewPane {
264264
const model = this.queryResult.model;
265265
this.setModel(model);
266266
if (this.queryResult.onDidChangeModel) {
267-
this.queryResult.disposables.add(this.queryResult.onDidChangeModel(model => this.updateModel(model)));
267+
this.queryResult.disposables.add(this.queryResult.onDidChangeModel(model => {
268+
if (this.queryResult) {
269+
this.queryResult.model = model;
270+
this.updateModel(model);
271+
}
272+
}));
268273
}
269274
return model;
270275
} catch (e) {

0 commit comments

Comments
 (0)