Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Lourens <roblourens@gmail.com>2022-05-11 22:57:10 +0300
committerGitHub <noreply@github.com>2022-05-11 22:57:10 +0300
commitc57173721932f37d4061b978cd8cece83a6b92a4 (patch)
treea830dff41eae7d2604c4773a821b126d7343751c
parent2bf6f8e55ff1738a576656401d0973572db9275e (diff)
Don't escape launch config args that are only '<' and '>'. Fix #148887 (#149284)
-rw-r--r--src/vs/workbench/contrib/debug/node/terminals.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/vs/workbench/contrib/debug/node/terminals.ts b/src/vs/workbench/contrib/debug/node/terminals.ts
index 5418d9e8ffc..5390b15a8ec 100644
--- a/src/vs/workbench/contrib/debug/node/terminals.ts
+++ b/src/vs/workbench/contrib/debug/node/terminals.ts
@@ -112,7 +112,8 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
const cmd = quote(args.shift()!);
command += (cmd[0] === '\'') ? `& ${cmd} ` : `${cmd} `;
for (const a of args) {
- command += `${quote(a)} `;
+ command += (a === '<' || a === '>') ? a : quote(a);
+ command += ' ';
}
}
break;
@@ -145,7 +146,8 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
}
}
for (const a of args) {
- command += `${quote(a)} `;
+ command += (a === '<' || a === '>') ? a : quote(a);
+ command += ' ';
}
if (env) {
command += '"';
@@ -179,7 +181,8 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
command += ' ';
}
for (const a of args) {
- command += `${quote(a)} `;
+ command += (a === '<' || a === '>') ? a : quote(a);
+ command += ' ';
}
break;
}