From bc452ec9be3cd1b2ae53c0d7444cb4428970550e Mon Sep 17 00:00:00 2001 From: nasc17 <69922333+nasc17@users.noreply.github.com> Date: Thu, 5 Nov 2020 13:49:11 -0800 Subject: [PATCH] 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 --- .../dashboards/postgres/postgresComputeAndStoragePage.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts b/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts index a1a3f36fc6..579ee88508 100644 --- a/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts +++ b/extensions/arc/src/ui/dashboards/postgres/postgresComputeAndStoragePage.ts @@ -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 => { + 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) {