From 6405bbc5b65fa9d1548fc2489922873d64755f45 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 21 Feb 2024 20:58:43 +0530 Subject: [PATCH] add fir --- src/client/extension.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/extension.ts b/src/client/extension.ts index d96f4dcb989f..1853cb871481 100644 --- a/src/client/extension.ts +++ b/src/client/extension.ts @@ -47,6 +47,8 @@ import { disposeAll } from './common/utils/resourceLifecycle'; import { ProposedExtensionAPI } from './proposedApiTypes'; import { buildProposedApi } from './proposedApi'; import { GLOBAL_PERSISTENT_KEYS } from './common/persistentState'; +import { sendTelemetryEvent } from './telemetry'; +import { EventName } from './telemetry/constants'; durations.codeLoadingTime = stopWatch.elapsedTime; @@ -118,7 +120,9 @@ async function activateUnsafe( // First we initialize. const isFirstSession = context.globalState.get(GLOBAL_PERSISTENT_KEYS, []).length === 0; - console.log(isFirstSession); + if (isFirstSession) { + sendTelemetryEvent(EventName.FIRST_SESSION); + } const ext = initializeGlobals(context); activatedServiceContainer = ext.legacyIOC.serviceContainer; // Note standard utils especially experiment and platform code are fundamental to the extension