Skip to content

Commit c5793ca

Browse files
committed
quote executable for pwsh executeCommand
1 parent eccd0d6 commit c5793ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/features/terminal/runInTerminal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export async function runInTerminal(
2929
}
3030
});
3131
if (shellType === ShellConstants.PWSH && !executable.startsWith('&')) {
32+
executable = quoteArgs([executable, ...allArgs]).join(' ');
3233
// PowerShell requires commands to be prefixed with '&' to run them.
3334
executable = `& ${executable}`;
3435
}

0 commit comments

Comments
 (0)