Arc - Delete registration

This commit is contained in:
Brian Bergeron
2020-06-25 08:50:22 -07:00
committed by GitHub
parent fdef92ad6b
commit dfa87eda86
3 changed files with 11 additions and 2 deletions

View File

@@ -231,6 +231,7 @@ export class PostgresOverviewPage extends DashboardPage {
try {
if (await promptForResourceDeletion(this._postgresModel.namespace, this._postgresModel.name)) {
await this._postgresModel.delete();
await this._controllerModel.deleteRegistration(ResourceType.postgresInstances, this._postgresModel.namespace, this._postgresModel.name);
vscode.window.showInformationMessage(loc.resourceDeleted(this._postgresModel.fullName));
}
} catch (error) {