提交 dc977a0a 编写于 作者: A Alex Ross

Allow tasks with empty command and non-empty args

Fixes #77059
上级 4a3570b3
...@@ -473,7 +473,7 @@ export class TerminalTaskSystem implements ITaskSystem { ...@@ -473,7 +473,7 @@ export class TerminalTaskSystem implements ITaskSystem {
return resolvedVariables.then((resolvedVariables) => { return resolvedVariables.then((resolvedVariables) => {
const isCustomExecution = (task.command.runtime === RuntimeType.CustomExecution) || (task.command.runtime === RuntimeType.CustomExecution2); 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; this.currentTask.resolvedVariables = resolvedVariables;
return this.executeInTerminal(task, trigger, new VariableResolver(workspaceFolder, systemInfo, resolvedVariables.variables, this.configurationResolverService), workspaceFolder); return this.executeInTerminal(task, trigger, new VariableResolver(workspaceFolder, systemInfo, resolvedVariables.variables, this.configurationResolverService), workspaceFolder);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册