@@ -215,7 +215,7 @@ export class ConfigurationManager implements IConfigurationManager {
215215 disposables . add ( input . onDidTriggerItemButton ( async ( context ) => {
216216 resolve ( undefined ) ;
217217 const { launch, config } = context . item ;
218- await launch . openConfigFile ( { preserveFocus : false , type : config . type } ) ;
218+ await launch . openConfigFile ( { preserveFocus : false , type : config . type , suppressInitialConfigs : true } ) ;
219219 // Only Launch have a pin trigger button
220220 await ( launch as Launch ) . writeConfiguration ( config ) ;
221221 await this . selectConfiguration ( launch , config . name ) ;
@@ -564,7 +564,7 @@ class Launch extends AbstractLaunch implements ILaunch {
564564 return this . configurationService . inspect < IGlobalConfig > ( 'launch' , { resource : this . workspace . uri } ) . workspaceFolderValue ;
565565 }
566566
567- async openConfigFile ( { preserveFocus, type, useInitialConfigs } : { preserveFocus : boolean ; type ?: string ; useInitialConfigs ?: boolean } , token ?: CancellationToken ) : Promise < { editor : IEditorPane | null ; created : boolean } > {
567+ async openConfigFile ( { preserveFocus, type, suppressInitialConfigs } : { preserveFocus : boolean ; type ?: string ; suppressInitialConfigs ?: boolean } , token ?: CancellationToken ) : Promise < { editor : IEditorPane | null ; created : boolean } > {
568568 const resource = this . uri ;
569569 let created = false ;
570570 let content = '' ;
@@ -573,7 +573,7 @@ class Launch extends AbstractLaunch implements ILaunch {
573573 content = fileContent . value . toString ( ) ;
574574 } catch {
575575 // launch.json not found: create one by collecting launch configs from debugConfigProviders
576- content = await this . getInitialConfigurationContent ( this . workspace . uri , type , useInitialConfigs , token ) ;
576+ content = await this . getInitialConfigurationContent ( this . workspace . uri , type , ! suppressInitialConfigs , token ) ;
577577 if ( ! content ) {
578578 // Cancelled
579579 return { editor : null , created : false } ;
0 commit comments