提交 cb074ea3 编写于 作者: D Dirk Baeumer

Fixes #30596: Binding keyboard shortcuts to tasks doesn't work with tasks 2.0

上级 b68f5542
......@@ -1732,12 +1732,14 @@ class TaskService extends EventEmitter implements ITaskService {
return;
}
if (Types.isString(arg)) {
this.tasks().then(tasks => {
for (let task of tasks) {
if (task.identifier === arg) {
this.run(task);
}
this.getTask(arg).then((task) => {
if (task) {
this.run(task);
} else {
this.quickOpenService.show('task ');
}
}, () => {
this.quickOpenService.show('task ');
});
} else {
this.quickOpenService.show('task ');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册