Compute and Storage Page, progress notification waits for model to be refreshed before saying instance has been updated. (#13254)

* Progress notification does not say updated until after the model has been refreshed

* git errors
This commit is contained in:
nasc17
2020-11-05 13:49:11 -08:00
committed by GitHub
parent 9225d6d6aa
commit bc452ec9be

View File

@@ -153,14 +153,13 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
title: loc.updatingInstance(this._postgresModel.info.name),
cancellable: false
},
(_progress, _token) => {
return this._azdataApi.azdata.arc.postgres.server.edit(
async (_progress, _token): Promise<void> => {
await this._azdataApi.azdata.arc.postgres.server.edit(
this._postgresModel.info.name, this.saveArgs);
await this._postgresModel.refresh();
}
);
this._postgresModel.refresh();
vscode.window.showInformationMessage(loc.instanceUpdated(this._postgresModel.info.name));
} catch (error) {