@@ -32,6 +32,8 @@ import { showErrorMessage } from '../../common/errors/utils';
3232import { Common , VenvManagerStrings } from '../../common/localize' ;
3333import { isUvInstalled , runUV , runPython } from './helpers' ;
3434import { getProjectInstallable , getWorkspacePackagesToInstall } from './pipUtils' ;
35+ import { sendTelemetryEvent } from '../../common/telemetry/sender' ;
36+ import { EventNames } from '../../common/telemetry/constants' ;
3537
3638export const VENV_WORKSPACE_KEY = `${ ENVS_EXTENSION_ID } :venv:WORKSPACE_SELECTED` ;
3739export const VENV_GLOBAL_KEY = `${ ENVS_EXTENSION_ID } :venv:GLOBAL_SELECTED` ;
@@ -462,6 +464,7 @@ export async function createPythonVenv(
462464 if ( customize === undefined ) {
463465 return ;
464466 } else if ( customize === false ) {
467+ sendTelemetryEvent ( EventNames . VENV_CREATION , undefined , { creationType : 'quick' } ) ;
465468 const installables = await getProjectInstallable ( api , project ? [ project ] : undefined ) ;
466469 return await createWithProgress (
467470 nativeFinder ,
@@ -473,6 +476,8 @@ export async function createPythonVenv(
473476 path . join ( venvRoot . fsPath , '.venv' ) ,
474477 installables ?. flatMap ( ( i ) => i . args ?? [ ] ) ,
475478 ) ;
479+ } else {
480+ sendTelemetryEvent ( EventNames . VENV_CREATION , undefined , { creationType : 'custom' } ) ;
476481 }
477482
478483 const basePython = await pickEnvironmentFrom ( sortedEnvs ) ;
0 commit comments