Skip to content

Commit

Permalink
Fix TaskDto conversion in $fetchTasks (#9740)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <tmader@redhat.com>
  • Loading branch information
tsmaeder committed Jul 26, 2021
1 parent 33dea9b commit 6550934
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/plugin-ext/src/main/browser/tasks-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,7 @@ export class TasksMainImpl implements TasksMain, Disposable {
for (const tasks of [configured, provided]) {
for (const task of tasks) {
if (!taskType || (!!this.taskDefinitionRegistry.getDefinition(task) ? task._source === taskType : task.type === taskType)) {
const { type, label, _scope, _source, ...properties } = task;
const dto: TaskDto = { type, label, scope: _scope, source: _source };
for (const key in properties) {
if (properties.hasOwnProperty(key)) {
dto[key] = properties[key];
}
}
result.push(dto);
result.push(this.fromTaskConfiguration(task));
}
}
}
Expand Down

0 comments on commit 6550934

Please sign in to comment.