Skip to content

Commit 43cb2d6

Browse files
committed
Fix custom tasks (no command)
1 parent ebff1e6 commit 43cb2d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ export class TerminalTaskSystem implements ITaskSystem {
471471
const resolvedVariables = this.resolveVariablesFromSet(this.currentTask.systemInfo, this.currentTask.workspaceFolder!, task, variables);
472472

473473
return resolvedVariables.then((resolvedVariables) => {
474-
if (resolvedVariables && task.command && task.command.name && task.command.runtime) {
474+
const isCustomExecution = task.command.runtime === RuntimeType.CustomExecution;
475+
if (resolvedVariables && task.command && task.command.runtime && (isCustomExecution || task.command.name)) {
475476
this.currentTask.resolvedVariables = resolvedVariables;
476477
return this.executeInTerminal(task, trigger, new VariableResolver(this.currentTask.workspaceFolder!, this.currentTask.systemInfo, resolvedVariables.variables, this.configurationResolverService));
477478
} else {

0 commit comments

Comments
 (0)