mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 09:35:41 -05:00
Add guids to RunAll and RunCell events (#17123)
Add guids to RunAll and RunCell events
This commit is contained in:
@@ -375,8 +375,13 @@ export class RunAllCellsAction extends Action {
|
||||
}
|
||||
public override async run(context: URI): Promise<void> {
|
||||
try {
|
||||
this._telemetryService.sendActionEvent(TelemetryKeys.TelemetryView.Notebook, TelemetryKeys.NbTelemetryAction.RunAll);
|
||||
const editor = this._notebookService.findNotebookEditor(context);
|
||||
|
||||
const azdata_notebook_guid: string = editor.model.getMetaValue('azdata_notebook_guid');
|
||||
this._telemetryService.createActionEvent(TelemetryKeys.TelemetryView.Notebook, TelemetryKeys.NbTelemetryAction.RunAll)
|
||||
.withAdditionalProperties({ azdata_notebook_guid })
|
||||
.send();
|
||||
|
||||
await editor.runAllCells();
|
||||
} catch (e) {
|
||||
this.notificationService.error(getErrorMessage(e));
|
||||
|
||||
Reference in New Issue
Block a user