mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 01:25:37 -05:00
Add telemetry for ModelView wizards (#12596)
* Add telemetry for ModelView wizards * Remove unnecessary params * Fix compile error
This commit is contained in:
@@ -392,12 +392,15 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
/**
|
||||
* Hides the modal and removes key listeners
|
||||
*/
|
||||
protected hide() {
|
||||
protected hide(reason?: string) {
|
||||
this._modalShowingContext.get()!.pop();
|
||||
this._bodyContainer!.remove();
|
||||
this.disposableStore.clear();
|
||||
this._telemetryService.createActionEvent(TelemetryKeys.TelemetryView.Shell, TelemetryKeys.ModalDialogClosed)
|
||||
.withAdditionalProperties({ name: this._name })
|
||||
.withAdditionalProperties({
|
||||
name: this._name,
|
||||
reason: reason
|
||||
})
|
||||
.send();
|
||||
this.restoreKeyboardFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user