From dc977a0a351aaacccd40009162c57019fd39fd4e Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Thu, 11 Jul 2019 10:22:50 +0200 Subject: [PATCH] Allow tasks with empty command and non-empty args Fixes #77059 --- src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts b/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts index 3dc54054450..22d43005858 100644 --- a/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts +++ b/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts @@ -473,7 +473,7 @@ export class TerminalTaskSystem implements ITaskSystem { return resolvedVariables.then((resolvedVariables) => { const isCustomExecution = (task.command.runtime === RuntimeType.CustomExecution) || (task.command.runtime === RuntimeType.CustomExecution2); - if (resolvedVariables && task.command && task.command.runtime && (isCustomExecution || task.command.name)) { + if (resolvedVariables && (task.command !== undefined) && task.command.runtime && (isCustomExecution || (task.command.name !== undefined))) { this.currentTask.resolvedVariables = resolvedVariables; return this.executeInTerminal(task, trigger, new VariableResolver(workspaceFolder, systemInfo, resolvedVariables.variables, this.configurationResolverService), workspaceFolder); } else {