mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
Add telemetry for opening dacpac wizard (#14884)
* add telemetry for opening dacpac wizard * add wizard open telemetry to core * fix tests * remove WizardOpen
This commit is contained in:
@@ -465,8 +465,9 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
|
||||
/**
|
||||
* Shows the modal and attaches key listeners
|
||||
* @param source Where the modal was opened from for telemetry (ex: command palette, context menu)
|
||||
*/
|
||||
protected show() {
|
||||
protected show(source?: string) {
|
||||
if (this._modalOptions.dialogStyle === 'callout') {
|
||||
this.positionCalloutDialog();
|
||||
}
|
||||
@@ -496,7 +497,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
}));
|
||||
|
||||
this.layout(DOM.getTotalHeight(this._modalBodySection!));
|
||||
this._telemetryService.createActionEvent(TelemetryKeys.TelemetryView.Shell, TelemetryKeys.TelemetryAction.ModalDialogOpened)
|
||||
this._telemetryService.createActionEvent(TelemetryKeys.TelemetryView.Shell, TelemetryKeys.TelemetryAction.ModalDialogOpened, undefined, source)
|
||||
.withAdditionalProperties({ name: this._name })
|
||||
.send();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user