mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix issue updating installed extension list (#23556)
This commit is contained in:
@@ -284,8 +284,14 @@ export class ExtensionsListView extends ViewPane {
|
|||||||
}
|
}
|
||||||
|
|
||||||
count(): number {
|
count(): number {
|
||||||
|
// {{SQL CARBON EDIT}} - try to use the list model before the queryResult model
|
||||||
|
// {{SQL CARBON EDIT}} - since there are code paths that call updateModel without updating queryResults
|
||||||
|
if (this.list?.model) {
|
||||||
|
return this.list.model.length;
|
||||||
|
} else {
|
||||||
return this.queryResult?.model.length ?? 0;
|
return this.queryResult?.model.length ?? 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected showEmptyModel(): Promise<IPagedModel<IExtension>> {
|
protected showEmptyModel(): Promise<IPagedModel<IExtension>> {
|
||||||
const emptyModel = new PagedModel([]);
|
const emptyModel = new PagedModel([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user