提交 43cb2d68 编写于 作者: A Alex Ross

Fix custom tasks (no command)

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