@@ -562,9 +562,6 @@ export class DebugService implements debug.IDebugService {
562562 }
563563
564564 public createProcess ( configurationOrName : debug . IConfig | string ) : TPromise < any > {
565- const sessionId = generateUuid ( ) ;
566- this . setStateAndEmit ( sessionId , debug . State . Initializing ) ;
567-
568565 return this . configurationService . reloadConfiguration ( ) // make sure configuration is up to date
569566 . then ( ( ) => this . extensionService . onReady ( )
570567 . then ( ( ) => {
@@ -599,7 +596,7 @@ export class DebugService implements debug.IDebugService {
599596 const successExitCode = taskSummary && taskSummary . exitCode === 0 ;
600597 const failureExitCode = taskSummary && taskSummary . exitCode !== undefined && taskSummary . exitCode !== 0 ;
601598 if ( successExitCode || ( errorCount === 0 && ! failureExitCode ) ) {
602- return this . doCreateProcess ( sessionId , resolvedConfig ) ;
599+ return this . doCreateProcess ( resolvedConfig ) ;
603600 }
604601
605602 this . messageService . show ( severity . Error , {
@@ -609,7 +606,7 @@ export class DebugService implements debug.IDebugService {
609606 actions : [
610607 new Action ( 'debug.continue' , nls . localize ( 'debugAnyway' , "Debug Anyway" ) , null , true , ( ) => {
611608 this . messageService . hideAll ( ) ;
612- return this . doCreateProcess ( sessionId , resolvedConfig ) ;
609+ return this . doCreateProcess ( resolvedConfig ) ;
613610 } ) ,
614611 this . instantiationService . createInstance ( ToggleMarkersPanelAction , ToggleMarkersPanelAction . ID , ToggleMarkersPanelAction . LABEL ) ,
615612 CloseAction
@@ -640,7 +637,10 @@ export class DebugService implements debug.IDebugService {
640637 } ) ) ;
641638 }
642639
643- private doCreateProcess ( sessionId : string , configuration : debug . IConfig ) : TPromise < any > {
640+
641+ private doCreateProcess ( configuration : debug . IConfig ) : TPromise < any > {
642+ const sessionId = generateUuid ( ) ;
643+ this . setStateAndEmit ( sessionId , debug . State . Initializing ) ;
644644
645645 return this . telemetryService . getTelemetryInfo ( ) . then ( info => {
646646 const telemetryInfo : { [ key : string ] : string } = Object . create ( null ) ;
0 commit comments