未验证 提交 4ac64f29 编写于 作者: A Alex Ross

Fix tasks using default terminal args

Fixes #126052
上级 a3d47b0b
......@@ -1041,6 +1041,10 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
let shellOptions: ShellConfiguration | undefined = task.command.options && task.command.options.shell;
if (shellOptions) {
if (shellOptions.executable) {
// Clear out the args so that we don't end up with mismatched args.
if (shellOptions.executable !== shellLaunchConfig.executable) {
shellLaunchConfig.args = undefined;
}
shellLaunchConfig.executable = await this.resolveVariable(variableResolver, shellOptions.executable);
shellSpecified = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册