mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-02 09:35:40 -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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user