mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add telemetry for schema compare and sql database projects options dialogs (#19799)
* add more telemetry for schema compare and sql projects options dialogs * cleanup * change to sendActionEvent
This commit is contained in:
@@ -10,6 +10,7 @@ import * as loc from '../localizedConstants';
|
||||
import { SchemaCompareMainWindow } from '../schemaCompareMainWindow';
|
||||
import { isNullOrUndefined } from 'util';
|
||||
import { SchemaCompareOptionsModel } from '../models/schemaCompareOptionsModel';
|
||||
import { TelemetryReporter, TelemetryViews } from '../telemetry';
|
||||
|
||||
export class SchemaCompareOptionsDialog {
|
||||
public dialog: azdata.window.Dialog;
|
||||
@@ -82,7 +83,10 @@ export class SchemaCompareOptionsDialog {
|
||||
this.schemaComparison.startCompare();
|
||||
}
|
||||
});
|
||||
|
||||
TelemetryReporter.sendActionEvent(TelemetryViews.SchemaCompareOptionsDialog, 'OptionsChanged');
|
||||
}
|
||||
|
||||
this.disposeListeners();
|
||||
}
|
||||
|
||||
@@ -106,6 +110,8 @@ export class SchemaCompareOptionsDialog {
|
||||
await this.updateObjectsTable();
|
||||
this.objectTypesFlexBuilder.removeItem(this.objectsTable);
|
||||
this.objectTypesFlexBuilder.addItem(this.objectsTable, { CSSStyles: { 'overflow': 'scroll', 'height': '80vh' } });
|
||||
|
||||
TelemetryReporter.sendActionEvent(TelemetryViews.SchemaCompareOptionsDialog, 'ResetOptions');
|
||||
}
|
||||
|
||||
private initializeSchemaCompareOptionsDialogTab(): void {
|
||||
|
||||
@@ -15,5 +15,6 @@ export const TelemetryReporter = new AdsTelemetryReporter(packageInfo.name, pack
|
||||
|
||||
export enum TelemetryViews {
|
||||
SchemaCompareMainWindow = 'SchemaCompareMainWindow',
|
||||
SchemaCompareDialog = 'SchemaCompareDialog'
|
||||
SchemaCompareDialog = 'SchemaCompareDialog',
|
||||
SchemaCompareOptionsDialog = 'SchemaCompareOptionsDialog'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user