提交 f31114ac 编写于 作者: A Alex Ross

wsl.exe for tasks shell requires -e

Fixes #63741
上级 4c73c171
......@@ -719,15 +719,19 @@ export class TerminalTaskSystem implements ITaskSystem {
if (basename === 'cmd.exe' && ((options.cwd && TPath.isUNC(options.cwd)) || (!options.cwd && TPath.isUNC(process.cwd())))) {
return undefined;
}
if (basename === 'powershell.exe' || basename === 'pwsh.exe') {
if ((basename === 'powershell.exe') || (basename === 'pwsh.exe')) {
if (!shellSpecified) {
toAdd.push('-Command');
}
} else if (basename === 'bash.exe' || basename === 'zsh.exe') {
} else if ((basename === 'bash.exe') || (basename === 'zsh.exe')) {
windowsShellArgs = false;
if (!shellSpecified) {
toAdd.push('-c');
}
} else if (basename === 'wsl.exe') {
if (!shellSpecified) {
toAdd.push('-e');
}
} else {
if (!shellSpecified) {
toAdd.push('/d', '/c');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册