From 67eebf7d1494c0d0157d78b8a98417357c19a235 Mon Sep 17 00:00:00 2001 From: Monica Gupta Date: Mon, 4 Jan 2021 11:27:06 -0800 Subject: [PATCH] Notification after copying query and results (#13902) Co-authored-by: Monica Gupta --- .../workbench/contrib/query/browser/keyboardQueryActions.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sql/workbench/contrib/query/browser/keyboardQueryActions.ts b/src/sql/workbench/contrib/query/browser/keyboardQueryActions.ts index 08defe2b95..8c3366304a 100644 --- a/src/sql/workbench/contrib/query/browser/keyboardQueryActions.ts +++ b/src/sql/workbench/contrib/query/browser/keyboardQueryActions.ts @@ -143,6 +143,7 @@ export class CopyQueryWithResultsKeyboardAction extends Action { @IEditorService private _editorService: IEditorService, @IClipboardService private _clipboardService: IClipboardService, @IQueryModelService protected readonly queryModelService: IQueryModelService, + @INotificationService private readonly notificationService: INotificationService ) { super(id, label); } @@ -196,6 +197,11 @@ export class CopyQueryWithResultsKeyboardAction extends Action { }; await this._clipboardService.write(data); + + this.notificationService.notify({ + severity: Severity.Info, + message: nls.localize('queryActions.queryResultsCopySuccess', "Successfully copied query and results.") + }); } } }