Skip to content

Commit

Permalink
Tasks should support string terminal args
Browse files Browse the repository at this point in the history
The termianl setting allows this, so tasks needs to handle it

Fixes #75946
  • Loading branch information
alexr00 committed Jun 27, 2019
1 parent 687e5c1 commit 30379ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ export class TerminalTaskSystem implements ITaskSystem {
shellLaunchConfig.args = [];
}
}
let shellArgs = <string[]>shellLaunchConfig.args!.slice(0);
let shellArgs = Array.isArray(shellLaunchConfig.args!) ? <string[]>shellLaunchConfig.args!.slice(0) : [shellLaunchConfig.args!];
let toAdd: string[] = [];
let commandLine = this.buildShellCommandLine(platform, shellLaunchConfig.executable!, shellOptions, command, originalCommand, args);
let windowsShellArgs: boolean = false;
Expand Down

0 comments on commit 30379ab

Please sign in to comment.