Notification after copying query and results (#13902)

Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
Monica Gupta
2021-01-04 11:27:06 -08:00
committed by GitHub
parent 558d70b427
commit 67eebf7d14

View File

@@ -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.")
});
}
}
}