mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-21 10:17:25 +00:00
Fixes #45684: Tasks no longer work
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user