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:
Kim Santiago
2021-03-26 14:57:51 -07:00
committed by GitHub
parent e080770c19
commit 39a47b0053
10 changed files with 47 additions and 25 deletions

View File

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