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

Merge branch 'dbaeumer/48831'

......@@ -456,6 +456,12 @@ export namespace CustomTask {
};
return result;
}
export function customizes(task: CustomTask): TaskIdentifier {
if (task._source && task._source.customizes) {
return task._source.customizes;
}
return undefined;
}
}
export interface ConfiguringTask extends CommonTask, ConfigurationProperties {
......
......@@ -696,9 +696,17 @@ class TaskService implements ITaskService {
let result: Task[] = [];
map.forEach((tasks) => {
for (let task of tasks) {
let definition = Task.getTaskDefinition(task);
if (definition && definition.type === filter.type) {
if (ContributedTask.is(task) && task.defines.type === filter.type) {
result.push(task);
} else if (CustomTask.is(task)) {
if (task.type === filter.type) {
result.push(task);
} else {
let customizes = CustomTask.customizes(task);
if (customizes && customizes.type === filter.type) {
result.push(task);
}
}
}
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册