this.messageService.show(Severity.Error,nls.localize('ConfigureTaskRunnerAction.autoDetect','Auto detecting the task system failed. Consult the task output for details'));
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',
].join('\n')+content.substr(1);
returncontent;
}else{
// TODO@Dirk: Converting double time here to get a wrong uri that is compatible with the rest of the system
contentPromise=this.fileService.resolveContent(configSampleUri,{encoding:'utf8'/* make sure to keep sample file encoding as we stored it! */}).then(content=>{
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.')