@@ -215,7 +215,7 @@ export class ConfigurationManager implements IConfigurationManager {
215
215
disposables . add ( input . onDidTriggerItemButton ( async ( context ) => {
216
216
resolve ( undefined ) ;
217
217
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 } ) ;
219
219
// Only Launch have a pin trigger button
220
220
await ( launch as Launch ) . writeConfiguration ( config ) ;
221
221
await this . selectConfiguration ( launch , config . name ) ;
@@ -564,7 +564,7 @@ class Launch extends AbstractLaunch implements ILaunch {
564
564
return this . configurationService . inspect < IGlobalConfig > ( 'launch' , { resource : this . workspace . uri } ) . workspaceFolderValue ;
565
565
}
566
566
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 } > {
568
568
const resource = this . uri ;
569
569
let created = false ;
570
570
let content = '' ;
@@ -573,7 +573,7 @@ class Launch extends AbstractLaunch implements ILaunch {
573
573
content = fileContent . value . toString ( ) ;
574
574
} catch {
575
575
// 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 ) ;
577
577
if ( ! content ) {
578
578
// Cancelled
579
579
return { editor : null , created : false } ;
0 commit comments