constterminateTask=this.createMenuItem(nls.localize({key:'miTerminateTask',comment:['&& denotes a mnemonic']},"&&Terminate Task..."),'workbench.action.tasks.terminate');
// const testTask = this.createMenuItem(nls.localize({ key: 'miTestTask', comment: ['&& denotes a mnemonic'] }, "Run Test T&&ask..."), 'workbench.action.tasks.test');
constconfigureTask=this.createMenuItem(nls.localize({key:'miConfigureTask',comment:['&& denotes a mnemonic']},"&&Configure Tasks"),'workbench.action.tasks.configureTaskRunner');
constconfigureBuildTask=this.createMenuItem(nls.localize({key:'miConfigureBuildTask',comment:['&& denotes a mnemonic']},"Configure De&&fault Build Task"),'workbench.action.tasks.configureDefaultBuildTask');
constconfigureTask=this.createMenuItem(nls.localize({key:'miConfigureTask',comment:['&& denotes a mnemonic']},"&&Configure Tasks..."),'workbench.action.tasks.configureTaskRunner');
constconfigureBuildTask=this.createMenuItem(nls.localize({key:'miConfigureBuildTask',comment:['&& denotes a mnemonic']},"Configure De&&fault Build Task..."),'workbench.action.tasks.configureDefaultBuildTask');
// const configureTestTask = this.createMenuItem(nls.localize({ key: 'miConfigureTestTask', comment: ['&& denotes a mnemonic'] }, "Configure Defau&< Test Task"), 'workbench.action.tasks.configureDefaultTestTask');
returnthis.quickOpenService.pick(taskTemplates,{placeHolder:nls.localize('ConfigureTaskRunnerAction.quickPick.template','Select a Task Runner')}).then(selection=>{
this.messageService.show(Severity.Warning,nls.localize('ConfigureTaskRunnerAction.autoDetect','Auto detecting the task system failed. Using default template. Consult the task output for details.'));
returnselection.content;
}else{
this.messageService.show(Severity.Warning,nls.localize('ConfigureTaskRunnerAction.autoDetectError','Auto detecting the task system produced errors. Consult the task output for details.'));
pinned:configFileCreated// pin only if config file is created #8727
}
},sideBySide);
},(error)=>{
thrownewError(nls.localize('ConfigureTaskRunnerAction.failed',"Unable to create the 'tasks.json' file inside the '.vscode' folder. Consult the task output for details."));
this.quickOpenService.pick(entries,{placeHolder:nls.localize('TaskService.pickTask','Select a task to configure'),autoFocus:{autoFocusFirstEntry:true}}).then((selection)=>{
this.messageService.show(Severity.Info,nls.localize('TaskService.defaultBuildTaskExists','{0} is already marked as the default build task.',Task.getQualifiedLabel(defaultTask)));
return;
tasks=[];
defaultEntry={
label:nls.localize('TaskService.defaultBuildTaskExists','{0} is already marked as the default build task',Task.getQualifiedLabel(defaultTask)),
task:defaultTask
};
}
this.showQuickPick(tasks,nls.localize('TaskService.pickDefaultBuildTask','Select the task to be used as the default build task'),true).then((task)=>{
this.messageService.show(Severity.Info,nls.localize('TaskService.defaultTestTaskExists','{0} is already marked as the default test task.',Task.getQualifiedLabel(defaultTask)));
return;
}
this.showQuickPick(tasks,nls.localize('TaskService.pickDefaultTestTask','Select the task to be used as the default test task'),true).then((task)=>{
this.showQuickPick(tasks,nls.localize('TaskService.pickDefaultTestTask','Select the task to be used as the default test task'),undefined,true).then((task)=>{