We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08bb5a1 commit fd05938Copy full SHA for fd05938
1 file changed
src/vs/workbench/contrib/debug/node/terminals.ts
@@ -380,7 +380,7 @@ export function prepareCommand(args: DebugProtocol.RunInTerminalRequestArguments
380
381
quote = (s: string) => {
382
s = s.replace(/\"/g, '""');
383
- return (s.indexOf(' ') >= 0 || s.indexOf('"') >= 0) ? `"${s}"` : s;
+ return (s.indexOf(' ') >= 0 || s.indexOf('"') >= 0 || s.length === 0) ? `"${s}"` : s;
384
};
385
386
if (args.cwd) {
@@ -410,7 +410,7 @@ export function prepareCommand(args: DebugProtocol.RunInTerminalRequestArguments
410
411
412
s = s.replace(/([\"\\])/g, '\\$1');
413
- return s.indexOf(' ') >= 0 ? `"${s}"` : s;
+ return (s.indexOf(' ') >= 0 || s.length === 0) ? `"${s}"` : s;
414
415
416
const hardQuote = (s: string) => {
0 commit comments