mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 01:25: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:
@@ -32,11 +32,11 @@ export class CustomDialogService {
|
||||
dialogModal.open();
|
||||
}
|
||||
|
||||
public showWizard(wizard: Wizard, options?: IModalOptions): void {
|
||||
public showWizard(wizard: Wizard, options?: IModalOptions, source?: string): void {
|
||||
let wizardModal = this._instantiationService.createInstance(WizardModal, wizard, options || DefaultWizardOptions);
|
||||
this._wizardModals.set(wizard, wizardModal);
|
||||
wizardModal.render();
|
||||
wizardModal.open();
|
||||
wizardModal.open(source);
|
||||
}
|
||||
|
||||
public closeDialog(dialog: Dialog): void {
|
||||
|
||||
@@ -261,9 +261,13 @@ export class WizardModal extends Modal {
|
||||
() => undefined);
|
||||
}
|
||||
|
||||
public open(): void {
|
||||
/**
|
||||
* Opens the dialog to the first page
|
||||
* @param source Where the wizard was opened from for telemetry (ex: command palette, context menu)
|
||||
*/
|
||||
public open(source?: string): void {
|
||||
this.showPage(0, false, true).then(() => {
|
||||
this.show();
|
||||
this.show(source);
|
||||
}).catch(err => onUnexpectedError(err));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user