@@ -252,7 +252,7 @@ export class DebugService implements IDebugService {
252252 * main entry point
253253 * properly manages compounds, checks for errors and handles the initializing state.
254254 */
255- startDebugging ( launch : ILaunch | undefined , configOrName ?: IConfig | string , noDebug = false , unresolvedConfig ?: IConfig , ) : Promise < boolean > {
255+ startDebugging ( launch : ILaunch | undefined , configOrName ?: IConfig | string , noDebug = false ) : Promise < boolean > {
256256
257257 this . startInitializingState ( ) ;
258258 // make sure to save all files and that the configuration is up to date
@@ -315,7 +315,7 @@ export class DebugService implements IDebugService {
315315 }
316316 }
317317
318- return this . createSession ( launchForName , launchForName ! . getConfiguration ( name ) , unresolvedConfig , noDebug ) ;
318+ return this . createSession ( launchForName , launchForName ! . getConfiguration ( name ) , noDebug ) ;
319319 } ) ) . then ( values => values . every ( success => ! ! success ) ) ; // Compound launch is a success only if each configuration launched successfully
320320 }
321321
@@ -325,7 +325,7 @@ export class DebugService implements IDebugService {
325325 return Promise . reject ( new Error ( message ) ) ;
326326 }
327327
328- return this . createSession ( launch , config , unresolvedConfig , noDebug ) ;
328+ return this . createSession ( launch , config , noDebug ) ;
329329 } ) ;
330330 } ) ) ;
331331 } ) . then ( success => {
@@ -341,7 +341,7 @@ export class DebugService implements IDebugService {
341341 /**
342342 * gets the debugger for the type, resolves configurations by providers, substitutes variables and runs prelaunch tasks
343343 */
344- private createSession ( launch : ILaunch | undefined , config : IConfig | undefined , unresolvedConfig : IConfig | undefined , noDebug : boolean ) : Promise < boolean > {
344+ private createSession ( launch : ILaunch | undefined , config : IConfig | undefined , noDebug : boolean ) : Promise < boolean > {
345345 // We keep the debug type in a separate variable 'type' so that a no-folder config has no attributes.
346346 // Storing the type in the config would break extensions that assume that the no-folder case is indicated by an empty config.
347347 let type : string | undefined ;
@@ -351,7 +351,7 @@ export class DebugService implements IDebugService {
351351 // a no-folder workspace has no launch.config
352352 config = Object . create ( null ) ;
353353 }
354- unresolvedConfig = unresolvedConfig || deepClone ( config ) ;
354+ const unresolvedConfig = deepClone ( config ) ;
355355
356356 if ( noDebug ) {
357357 config ! . noDebug = true ;
0 commit comments