From 9b94f82b2e3d2fbd8999737b75c2c1902257df44 Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Tue, 6 Jun 2023 20:35:10 -0700 Subject: [PATCH] Adding status message for connection and connection group deletion. (#23325) --- .../services/objectExplorer/browser/connectionTreeAction.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sql/workbench/services/objectExplorer/browser/connectionTreeAction.ts b/src/sql/workbench/services/objectExplorer/browser/connectionTreeAction.ts index e50a97a7d8..8f70b875e1 100644 --- a/src/sql/workbench/services/objectExplorer/browser/connectionTreeAction.ts +++ b/src/sql/workbench/services/objectExplorer/browser/connectionTreeAction.ts @@ -24,6 +24,7 @@ import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; import { Codicon } from 'vs/base/common/codicons'; import { IAdsTelemetryService } from 'sql/platform/telemetry/common/telemetry'; import * as TelemetryKeys from 'sql/platform/telemetry/common/telemetryKeys'; +import { status } from 'vs/base/browser/ui/aria/aria'; export interface IServerView { showFilteredTree(filter: string): void; @@ -300,12 +301,14 @@ export class DeleteConnectionAction extends Action { [deleteConnectionConfirmationYes, deleteConnectionConfirmationNo]); if (modalResult.choice === 0) { await this._connectionManagementService.deleteConnection(this.element); + status(localize('connectionDeleted', "Connection {0} deleted", name)); } } else if (this.element instanceof ConnectionProfileGroup) { const modalResult = await this._dialogService.show(Severity.Warning, localize('deleteConnectionGroupConfirmation', "Are you sure you want to delete connection group '{0}'?", this.element.name), [deleteConnectionConfirmationYes, deleteConnectionConfirmationNo]); if (modalResult.choice === 0) { await this._connectionManagementService.deleteConnectionGroup(this.element); + status(localize('connectionGroupDeleted', "Connection group {0} deleted", this.element.name)); } } }