this.messageService.show(Severity.Error,nls.localize('ConfigureTaskRunnerAction.autoDetect','Auto detecting the task system failed. Consult the task output for details'));
returnthis.quickOpenService.pick(taskTemplates,{placeHolder:'Pick a task template'}).then(selection=>{
contentPromise=this.fileService.resolveContent(configSampleUri,{encoding:'utf8'/* make sure to keep sample file encoding as we stored it! */}).then(content=>{
this.messageService.show(Severity.Error,nls.localize('ConfigureTaskRunnerAction.autoDetect','Auto detecting the task system failed. Using default template. Consult the task output for details.'));
returnselection.content;
}elseif(config){
letcontent=JSON.stringify(config,null,'\t');
content=[
'{',
'\t// See http://go.microsoft.com/fwlink/?LinkId=733558',
'\t// for the documentation about the tasks.json format',
thrownewError(nls.localize('ConfigureTaskRunnerAction.failed',"Unable to create the 'tasks.json' file inside the '.vscode' folder. Consult the task output for details."));
'description':nls.localize('JsonSchema.tasks.matchers','The problem matcher(s) to use. Can either be a string or a problem matcher definition or an array of strings and problem matchers.')