@@ -33,7 +33,7 @@ import { IAction } from 'vs/base/common/actions';
3333import { deepClone , equals } from 'vs/base/common/objects' ;
3434import { DebugSession } from 'vs/workbench/contrib/debug/browser/debugSession' ;
3535import { dispose , IDisposable } from 'vs/base/common/lifecycle' ;
36- import { IDebugService , State , IDebugSession , CONTEXT_DEBUG_TYPE , CONTEXT_DEBUG_STATE , CONTEXT_IN_DEBUG_MODE , IThread , IDebugConfiguration , VIEWLET_ID , DEBUG_PANEL_ID , IConfig , ILaunch , IViewModel , IConfigurationManager , IDebugModel , IEnablement , IBreakpoint , IBreakpointData , ICompound , IStackFrame , getStateLabel , IDebugSessionOptions , CONTEXT_DEBUG_UX , REPL_VIEW_ID , CONTEXT_BREAKPOINTS_EXIST } from 'vs/workbench/contrib/debug/common/debug' ;
36+ import { IDebugService , State , IDebugSession , CONTEXT_DEBUG_TYPE , CONTEXT_DEBUG_STATE , CONTEXT_IN_DEBUG_MODE , IThread , IDebugConfiguration , VIEWLET_ID , DEBUG_PANEL_ID , IConfig , ILaunch , IViewModel , IConfigurationManager , IDebugModel , IEnablement , IBreakpoint , IBreakpointData , ICompound , IStackFrame , getStateLabel , IDebugSessionOptions , CONTEXT_DEBUG_UX , REPL_VIEW_ID , CONTEXT_BREAKPOINTS_EXIST , IGlobalConfig } from 'vs/workbench/contrib/debug/common/debug' ;
3737import { getExtensionHostDebugSession } from 'vs/workbench/contrib/debug/common/debugUtils' ;
3838import { isErrorWithActions } from 'vs/base/common/errorsWithActions' ;
3939import { RunOnceScheduler } from 'vs/base/common/async' ;
@@ -521,7 +521,8 @@ export class DebugService implements IDebugService {
521521 try {
522522 await session . initialize ( dbgr ! ) ;
523523 await session . launchOrAttach ( session . configuration ) ;
524- await this . telemetry . logDebugSessionStart ( dbgr ! , session . root ) ;
524+ const launchJsonExists = ! ! session . root && ! ! this . configurationService . getValue < IGlobalConfig > ( 'launch' , { resource : session . root . uri } ) ;
525+ await this . telemetry . logDebugSessionStart ( dbgr ! , launchJsonExists ) ;
525526
526527 if ( forceFocus || ! this . viewModel . focusedSession || session . parentSession === this . viewModel . focusedSession ) {
527528 await this . focusStackFrame ( undefined , undefined , session ) ;
0 commit comments