Skip to content

Commit e60ed9a

Browse files
committed
attach double quotes before executeCommand
1 parent c5793ca commit e60ed9a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/features/terminal/runInTerminal.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export async function runInTerminal(
2929
}
3030
});
3131
if (shellType === ShellConstants.PWSH && !executable.startsWith('&')) {
32-
executable = quoteArgs([executable, ...allArgs]).join(' ');
3332
// PowerShell requires commands to be prefixed with '&' to run them.
34-
executable = `& ${executable}`;
33+
executable = `& "${executable}"`;
3534
}
3635
execution = terminal.shellIntegration.executeCommand(executable, allArgs);
3736
await deferred.promise;

0 commit comments

Comments
 (0)