@@ -13,9 +13,6 @@ import {
1313 getWorkspaceFolders ,
1414} from '../../../../common/vscodeApis/workspaceApis' ;
1515import { IInterpreterService } from '../../../../interpreter/contracts' ;
16- import { sendTelemetryEvent } from '../../../../telemetry' ;
17- import { EventName } from '../../../../telemetry/constants' ;
18- import { DebuggerTelemetry } from '../../../../telemetry/types' ;
1916import { AttachRequestArguments , DebugOptions , LaunchRequestArguments , PathMapping } from '../../../types' ;
2017import { PythonPathSource } from '../../types' ;
2118import { IDebugConfigurationResolver } from '../types' ;
@@ -228,34 +225,4 @@ export abstract class BaseConfigurationResolver<T extends DebugConfiguration>
228225 ) : boolean {
229226 return ! ! ( debugConfiguration . module && debugConfiguration . module . toUpperCase ( ) === 'FLASK' ) ;
230227 }
231-
232- protected static sendTelemetry (
233- trigger : 'launch' | 'attach' | 'test' ,
234- debugConfiguration : Partial < LaunchRequestArguments & AttachRequestArguments > ,
235- ) : void {
236- const name = debugConfiguration . name || '' ;
237- const moduleName = debugConfiguration . module || '' ;
238- const telemetryProps : DebuggerTelemetry = {
239- trigger,
240- console : debugConfiguration . console ,
241- hasEnvVars : typeof debugConfiguration . env === 'object' && Object . keys ( debugConfiguration . env ) . length > 0 ,
242- django : ! ! debugConfiguration . django ,
243- fastapi : BaseConfigurationResolver . isDebuggingFastAPI ( debugConfiguration ) ,
244- flask : BaseConfigurationResolver . isDebuggingFlask ( debugConfiguration ) ,
245- hasArgs : Array . isArray ( debugConfiguration . args ) && debugConfiguration . args . length > 0 ,
246- isLocalhost : BaseConfigurationResolver . isLocalHost ( debugConfiguration . host ) ,
247- isModule : moduleName . length > 0 ,
248- isSudo : ! ! debugConfiguration . sudo ,
249- jinja : ! ! debugConfiguration . jinja ,
250- pyramid : ! ! debugConfiguration . pyramid ,
251- stopOnEntry : ! ! debugConfiguration . stopOnEntry ,
252- showReturnValue : ! ! debugConfiguration . showReturnValue ,
253- subProcess : ! ! debugConfiguration . subProcess ,
254- watson : name . toLowerCase ( ) . indexOf ( 'watson' ) >= 0 ,
255- pyspark : name . toLowerCase ( ) . indexOf ( 'pyspark' ) >= 0 ,
256- gevent : name . toLowerCase ( ) . indexOf ( 'gevent' ) >= 0 ,
257- scrapy : moduleName . toLowerCase ( ) === 'scrapy' ,
258- } ;
259- sendTelemetryEvent ( EventName . DEBUGGER , undefined , telemetryProps ) ;
260- }
261228}
0 commit comments