mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
parent
3c7fc6d6a0
commit
a4a6607ceb
|
@ -324,7 +324,7 @@ export async function createTask(packageManager: string, script: NpmTaskDefiniti
|
||||||
const result: (string | ShellQuotedString)[] = new Array(cmd.length);
|
const result: (string | ShellQuotedString)[] = new Array(cmd.length);
|
||||||
for (let i = 0; i < cmd.length; i++) {
|
for (let i = 0; i < cmd.length; i++) {
|
||||||
if (/\s/.test(cmd[i])) {
|
if (/\s/.test(cmd[i])) {
|
||||||
result[i] = { value: `${cmd[i]}`, quoting: ShellQuoting.Strong };
|
result[i] = { value: cmd[i], quoting: cmd[i].includes('--') ? ShellQuoting.Weak : ShellQuoting.Strong };
|
||||||
} else {
|
} else {
|
||||||
result[i] = cmd[i];
|
result[i] = cmd[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue