diff --git a/packages/task/src/browser/process/process-task-resolver.ts b/packages/task/src/browser/process/process-task-resolver.ts index 649d16a1be02c..1be9e053bb232 100644 --- a/packages/task/src/browser/process/process-task-resolver.ts +++ b/packages/task/src/browser/process/process-task-resolver.ts @@ -42,7 +42,8 @@ export class ProcessTaskResolver implements TaskResolver { * sane default values. Also, resolve all known variables, e.g. `${workspaceFolder}`. */ async resolveTask(taskConfig: TaskConfiguration): Promise { - if (taskConfig.taskType !== 'process' && taskConfig.taskType !== 'shell') { + const type = taskConfig.taskType || taskConfig.type; + if (type !== 'process' && type !== 'shell') { throw new Error('Unsupported task configuration type.'); } const context = typeof taskConfig._scope === 'string' ? new URI(taskConfig._scope) : undefined; diff --git a/packages/task/src/node/process/process-task-runner.ts b/packages/task/src/node/process/process-task-runner.ts index 43779a4b8b1b2..8bf1b23d29d3b 100644 --- a/packages/task/src/node/process/process-task-runner.ts +++ b/packages/task/src/node/process/process-task-runner.ts @@ -141,7 +141,7 @@ export class ProcessTaskRunner implements TaskRunner { */ let commandLine: string | undefined; - if (taskConfig.type === 'shell') { + if ((taskConfig.taskType || taskConfig.type) === 'shell') { // When running a shell task, we have to spawn a shell process somehow, // and tell it to run the command the user wants to run inside of it. //