Fixes #45684: Tasks no longer work

This commit is contained in:
Dirk Baeumer
2018-03-13 22:27:19 +01:00
parent e1b548f072
commit 3fc4e266e8

View File

@@ -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);