Skip to content

Commit 6405bbc

Browse files
author
Kartik Raj
committed
add fir
1 parent 499b4c1 commit 6405bbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/client/extension.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ import { disposeAll } from './common/utils/resourceLifecycle';
4747
import { ProposedExtensionAPI } from './proposedApiTypes';
4848
import { buildProposedApi } from './proposedApi';
4949
import { GLOBAL_PERSISTENT_KEYS } from './common/persistentState';
50+
import { sendTelemetryEvent } from './telemetry';
51+
import { EventName } from './telemetry/constants';
5052

5153
durations.codeLoadingTime = stopWatch.elapsedTime;
5254

@@ -118,7 +120,9 @@ async function activateUnsafe(
118120

119121
// First we initialize.
120122
const isFirstSession = context.globalState.get(GLOBAL_PERSISTENT_KEYS, []).length === 0;
121-
console.log(isFirstSession);
123+
if (isFirstSession) {
124+
sendTelemetryEvent(EventName.FIRST_SESSION);
125+
}
122126
const ext = initializeGlobals(context);
123127
activatedServiceContainer = ext.legacyIOC.serviceContainer;
124128
// Note standard utils especially experiment and platform code are fundamental to the extension

0 commit comments

Comments
 (0)