File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/vs/workbench/contrib/extensions/browser Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export interface ExtensionsListViewOptions {
85
85
}
86
86
87
87
interface IQueryResult {
88
- readonly model : IPagedModel < IExtension > ;
88
+ model : IPagedModel < IExtension > ;
89
89
readonly onDidChangeModel ?: Event < IPagedModel < IExtension > > ;
90
90
readonly disposables : DisposableStore ;
91
91
}
@@ -264,7 +264,12 @@ export class ExtensionsListView extends ViewPane {
264
264
const model = this . queryResult . model ;
265
265
this . setModel ( model ) ;
266
266
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
+ } ) ) ;
268
273
}
269
274
return model ;
270
275
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments