Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/vs-code-designer/src/app/utils/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const logSubscriptions = async (context: IActionContext) => {
context.telemetry.properties.subscriptions = JSON.stringify(azureSubscriptions);
};

export const logExtensionSettings = async (context: IActionContext) => {
export const logExtensionSettings = (context: IActionContext) => {
const settingsToLog = [
'autoRuntimeDependenciesValidationAndInstallation',
'autoStartAzurite',
Expand Down
1 change: 1 addition & 0 deletions apps/vs-code-designer/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export const extensionCommand = {
debugLogicApp: 'azureLogicAppsStandard.debugLogicApp',
switchToDataMapperV2: 'azureLogicAppsStandard.dataMap.switchToDataMapperV2',
enableDevContainer: 'azureLogicAppsStandard.enableDevContainer',
logSubscriptions: 'azureLogicAppsStandard.logSubscriptions',
} as const;
export type extensionCommand = (typeof extensionCommand)[keyof typeof extensionCommand];

Expand Down
4 changes: 3 additions & 1 deletion apps/vs-code-designer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ export async function activate(context: vscode.ExtensionContext) {

runPostWorkflowCreateStepsFromCache();
runPostExtractStepsFromCache();
callWithTelemetryAndErrorHandling(extensionCommand.logSubscriptions, async (actionContext: IActionContext) => {
await logSubscriptions(actionContext);
});

if (vscode.workspace.workspaceFolders && vscode.workspace.workspaceFolders.length > 0) {
await convertToWorkspace(activateContext);
Expand Down Expand Up @@ -159,7 +162,6 @@ export async function activate(context: vscode.ExtensionContext) {
perfStats.loadEndTime = Date.now();
activateContext.telemetry.measurements.mainFileLoad = (perfStats.loadEndTime - perfStats.loadStartTime) / 1000;

logSubscriptions(activateContext);
logExtensionSettings(activateContext);
});
}
Expand Down
Loading