mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 17:22:29 -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:
@@ -256,11 +256,11 @@ export class MainThreadModelViewDialog implements MainThreadModelViewDialogShape
|
||||
return modal.showPage(pageIndex);
|
||||
}
|
||||
|
||||
public $openWizard(handle: number): Thenable<void> {
|
||||
public $openWizard(handle: number, source?: string): Thenable<void> {
|
||||
let wizard = this.getWizard(handle);
|
||||
const options = assign({}, DefaultWizardOptions);
|
||||
options.width = wizard.width;
|
||||
this._dialogService.showWizard(wizard, options);
|
||||
this._dialogService.showWizard(wizard, options, source);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
|
||||
@@ -502,8 +502,8 @@ class WizardImpl implements azdata.window.Wizard {
|
||||
return this._extHostModelViewDialog.setWizardPage(this, index);
|
||||
}
|
||||
|
||||
public open(): Thenable<void> {
|
||||
return this._extHostModelViewDialog.openWizard(this);
|
||||
public open(source?: string): Thenable<void> {
|
||||
return this._extHostModelViewDialog.openWizard(this, source);
|
||||
}
|
||||
|
||||
public close(): Thenable<void> {
|
||||
@@ -943,10 +943,10 @@ export class ExtHostModelViewDialog implements ExtHostModelViewDialogShape {
|
||||
return this._proxy.$setWizardPage(this.getHandle(wizard), pageIndex);
|
||||
}
|
||||
|
||||
public openWizard(wizard: azdata.window.Wizard): Thenable<void> {
|
||||
public openWizard(wizard: azdata.window.Wizard, source?: string): Thenable<void> {
|
||||
let handle = this.getHandle(wizard);
|
||||
this.updateWizard(wizard);
|
||||
return this._proxy.$openWizard(handle);
|
||||
return this._proxy.$openWizard(handle, source);
|
||||
}
|
||||
|
||||
public closeWizard(wizard: azdata.window.Wizard): Thenable<void> {
|
||||
|
||||
@@ -826,7 +826,7 @@ export interface MainThreadModelViewDialogShape extends IDisposable {
|
||||
$setDialogDetails(handle: number, details: IModelViewDialogDetails): Thenable<void>;
|
||||
$setTabDetails(handle: number, details: IModelViewTabDetails): Thenable<void>;
|
||||
$setButtonDetails(handle: number, details: IModelViewButtonDetails): Thenable<void>;
|
||||
$openWizard(handle: number): Thenable<void>;
|
||||
$openWizard(handle: number, source?: string): Thenable<void>;
|
||||
$closeWizard(handle: number): Thenable<void>;
|
||||
$setWizardPageDetails(handle: number, details: IModelViewWizardPageDetails): Thenable<void>;
|
||||
$setWizardDetails(handle: number, details: IModelViewWizardDetails): Thenable<void>;
|
||||
|
||||
Reference in New Issue
Block a user