Add telemetry for ModelView wizards (#12596)

* Add telemetry for ModelView wizards

* Remove unnecessary params

* Fix compile error
This commit is contained in:
Charles Gagnon
2020-09-23 17:08:22 -07:00
committed by GitHub
parent 8bc7079d78
commit 807a4ae8c4
18 changed files with 40 additions and 42 deletions

View File

@@ -46,7 +46,6 @@ export class WizardModal extends Modal {
constructor(
private _wizard: Wizard,
name: string,
options: IModalOptions,
@ILayoutService layoutService: ILayoutService,
@IThemeService themeService: IThemeService,
@@ -57,7 +56,7 @@ export class WizardModal extends Modal {
@ILogService logService: ILogService,
@ITextResourcePropertiesService textResourcePropertiesService: ITextResourcePropertiesService
) {
super(_wizard.title, name, telemetryService, layoutService, clipboardService, themeService, logService, textResourcePropertiesService, contextKeyService, options);
super(_wizard.title, _wizard.name, telemetryService, layoutService, clipboardService, themeService, logService, textResourcePropertiesService, contextKeyService, options);
this._useDefaultMessageBoxLocation = false;
}
@@ -264,14 +263,14 @@ export class WizardModal extends Modal {
}
this._onDone.fire();
this.dispose();
this.hide();
this.hide('done');
}
}
public cancel(): void {
this._onCancel.fire();
this.dispose();
this.hide();
this.hide('cancel');
}
private async validateNavigation(newPage: number): Promise<boolean> {
@@ -288,14 +287,6 @@ export class WizardModal extends Modal {
return navigationValid;
}
protected hide(): void {
super.hide();
}
protected show(): void {
super.show();
}
/**
* Overridable to change behavior of escape key
*/