提交 9686a632 编写于 作者: A Alex Ross

Fix commandless tasks

Part of #76611
上级 4f0d79d1
......@@ -471,7 +471,7 @@ 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.runtime) {
if (resolvedVariables && task.command && task.command.name && task.command.runtime) {
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.
先完成此消息的编辑!
想要评论请 注册