mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
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:
@@ -153,14 +153,13 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
|
|||||||
title: loc.updatingInstance(this._postgresModel.info.name),
|
title: loc.updatingInstance(this._postgresModel.info.name),
|
||||||
cancellable: false
|
cancellable: false
|
||||||
},
|
},
|
||||||
(_progress, _token) => {
|
async (_progress, _token): Promise<void> => {
|
||||||
return this._azdataApi.azdata.arc.postgres.server.edit(
|
await this._azdataApi.azdata.arc.postgres.server.edit(
|
||||||
this._postgresModel.info.name, this.saveArgs);
|
this._postgresModel.info.name, this.saveArgs);
|
||||||
|
await this._postgresModel.refresh();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
this._postgresModel.refresh();
|
|
||||||
|
|
||||||
vscode.window.showInformationMessage(loc.instanceUpdated(this._postgresModel.info.name));
|
vscode.window.showInformationMessage(loc.instanceUpdated(this._postgresModel.info.name));
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user