Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Nov 14, 2019
1 parent c43c4ca commit 2acdd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-ext/src/plugin/type-converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,12 +669,12 @@ export function toTask(taskDto: TaskDto): theia.Task {
result.definition = taskDefinition;

if (taskType === 'process') {
result.execution = getProcessExecution(taskDto as ProcessTaskDto);
result.execution = getProcessExecution(taskDto);
}

const execution = { command, args, options };
if (taskType === 'shell' || types.ShellExecution.is(execution)) {
result.execution = getShellExecution(taskDto as ProcessTaskDto);
result.execution = getShellExecution(taskDto);
}

if (!properties) {
Expand Down

0 comments on commit 2acdd83

Please sign in to comment.