From 3fc4e266e8327469bbf2bb66dd457a3ace3255b5 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Tue, 13 Mar 2018 22:27:19 +0100 Subject: [PATCH] Fixes #45684: Tasks no longer work --- .../parts/tasks/electron-browser/terminalTaskSystem.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vs/workbench/parts/tasks/electron-browser/terminalTaskSystem.ts b/src/vs/workbench/parts/tasks/electron-browser/terminalTaskSystem.ts index 7b0d8986a47..218b9a7b82b 100644 --- a/src/vs/workbench/parts/tasks/electron-browser/terminalTaskSystem.ts +++ b/src/vs/workbench/parts/tasks/electron-browser/terminalTaskSystem.ts @@ -576,6 +576,12 @@ export class TerminalTaskSystem implements ITaskSystem { } private buildShellCommandLine(shellExecutable: string, shellOptions: ShellConfiguration, command: CommandString, args: CommandString[]): string { + // If we have no args and the command is a string then use the + // command to stay backwards compatible with the old command line + // model. + if ((!args || args.length === 0) && Types.isString(command)) { + return command; + } let basename = path.parse(shellExecutable).name.toLowerCase(); let shellQuoteOptions = this.getOuotingOptions(basename, shellOptions);