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

@@ -125,7 +125,16 @@ export class DataTierApplicationWizard {
this.setPages();
this.configureButtons();
this.wizard.open();
// the wizard was started from the context menu of a database or server if the connectionProfile is not undefined
// Otherwise it was launched from the command palette
let launchedFrom: string;
if (profile) {
launchedFrom = profile.databaseName ? 'database context menu' : 'server context menu';
} else {
launchedFrom = 'command palette';
}
this.wizard.open(launchedFrom);
return true;
}