Skip to content

Commit 4af0af5

Browse files
authored
Add telemetry for Python Environments extension use on activation (#25578)
1 parent 2a41070 commit 4af0af5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/client/startupTelemetry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ async function getActivationTelemetryProps(
136136
const usingGlobalInterpreter = interpreter
137137
? isUsingGlobalInterpreterInWorkspace(interpreter.path, serviceContainer)
138138
: false;
139+
const usingEnvironmentsExtension = useEnvExtension();
139140

140141
return {
141142
condaVersion,
@@ -148,5 +149,6 @@ async function getActivationTelemetryProps(
148149
usingGlobalInterpreter,
149150
appName,
150151
isFirstSession,
152+
usingEnvironmentsExtension,
151153
};
152154
}

src/client/telemetry/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,10 @@ export interface IEventNamePropertyMapping {
404404
* to approximately guess if it's the first session.
405405
*/
406406
isFirstSession?: boolean;
407+
/**
408+
* If user has enabled the Python Environments extension integration
409+
*/
410+
usingEnvironmentsExtension?: boolean;
407411
};
408412
/**
409413
* Telemetry event sent when substituting Environment variables to calculate value of variables

0 commit comments

Comments
 (0)