无法将默认终端设置为PowerShell 6.0



我试图将VSCODE中的默认终端设置为PowerShell 6.0。但是,重新启动VSCODE后,出现以下消息,未启动终端。

ERROR  e.executable.toLowerCase is not a function

这是我尝试使用的用户设置覆盖代码。注意:必须逃脱后斜线路径分离器。

vscode 1.18.1
PSVersion 6.0.0-rc
"C:Program FilesPowerShell6.0.0-rcpwsh.exe"
{
    "window.zoomLevel": 1,
    "terminal.integrated.shell.windows": {
        "C:\Program Files\PowerShell\6.0.0-rc\pwsh.exe"
    }
}

"terminal.integrated.env.windows"不是要使用的正确属性。

这有效。

{
    "window.zoomLevel": 1,
    "terminal.integrated.shell.windows": "C:\Program Files\PowerShell\6.0.0-rc\pwsh.exe"
}

这也有效。

{
    "window.zoomLevel": 1,
    "terminal.integrated.shell.windows":
        "C:/Program Files/PowerShell/6.0.0-rc/pwsh.exe"
}

从2019年8月26日起,路径是:

{
    "window.zoomLevel": 1,
    "terminal.integrated.shell.windows": "C:/Program Files/PowerShell/6/pwsh.exe"
}

最新更新