提交 e526f161 编写于 作者: A Alex Ross

Prioritize configured tasks in `getTask`

Fixes #109939
上级 7b5849b1
......@@ -576,7 +576,8 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
if (!values) {
return undefined;
}
return values.find(task => task.matches(key, compareId));
values = values.filter(task => task.matches(key, compareId)).sort(task => task._source.kind === TaskSourceKind.Extension ? 1 : -1);
return values.length > 0 ? values[0] : undefined;
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册