// We will only show the prompt if their are automatic tasks, so taskNames is at least of length 1.
lettaskNamesPrint:string='('+taskNames[0];
for(leti=1;i<taskNames.length;i++){
taskNamesPrint+=', '+taskNames[i];
}
taskNamesPrint+=')';
returnnewPromise<boolean>(resolve=>{
this.notificationService.prompt(Severity.Info,nls.localize('tasks.run.allowAutomatic',"This folder has tasks defined in \'tasks.json\' that run automatically when you open this folder. Do you allow automatic tasks to run when you open this folder?"),
this.notificationService.prompt(Severity.Info,nls.localize('tasks.run.allowAutomatic',"This folder has tasks {0} defined in \'tasks.json\' that run automatically when you open this folder. Do you allow automatic tasks to run when you open this folder?",taskNamesPrint),