this.messageService.show(Severity.Info,nls.localize('TaskSystem.activeSame.background','The task \'{0}\' is already active and in background mode. To terminate it use `Terminate Task...` from the Tasks menu.',task._label));
this.messageService.show(Severity.Info,nls.localize('TaskSystem.activeSame.background','The task \'{0}\' is already active and in background mode. To terminate it use `Terminate Task...` from the Tasks menu.',Task.getQualifiedLabel(task)));
}else{
this.messageService.show(Severity.Info,nls.localize('TaskSystem.activeSame.noBackground','The task \'{0}\' is already active. To terminate it use `Terminate Task...` from the Tasks menu.',task._label));
this.messageService.show(Severity.Info,nls.localize('TaskSystem.activeSame.noBackground','The task \'{0}\' is already active. To terminate it use `Terminate Task...` from the Tasks menu.',Task.getQualifiedLabel(task)));
}
}else{
thrownewTaskError(Severity.Warning,nls.localize('TaskSystem.active','There is already a task running. Terminate it first before executing another task.'),TaskErrors.RunningTask);
this.messageService.show(Severity.Info,nls.localize('TaskService.defaultBuildTaskExists','{0} is already marked as the default build task.',defaultTask._label));
this.messageService.show(Severity.Info,nls.localize('TaskService.defaultBuildTaskExists','{0} is already marked as the default build task.',Task.getQualifiedLabel(defaultTask)));
return;
}
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.',defaultTask._label));
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)=>{