mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix issue updating installed extension list (#23556)
This commit is contained in:
@@ -284,7 +284,13 @@ export class ExtensionsListView extends ViewPane {
|
||||
}
|
||||
|
||||
count(): number {
|
||||
return this.queryResult?.model.length ?? 0;
|
||||
// {{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;
|
||||
}
|
||||
}
|
||||
|
||||
protected showEmptyModel(): Promise<IPagedModel<IExtension>> {
|
||||
|
||||
Reference in New Issue
Block a user