无法将默认终端设置为 PowerShell 6.0
Cannot set default terminal to 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 Files\PowerShell.0.0-rc\pwsh.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"
}
我正在尝试将 vscode 中的默认终端设置为 PowerShell 6.0。但是,重启后vscode,出现如下信息,终端没有启动。
ERROR e.executable.toLowerCase is not a function
这是我尝试使用的用户设置覆盖代码。注意:反斜杠路径分隔符必须转义。
vscode 1.18.1
PSVersion 6.0.0-rc
"C:\Program Files\PowerShell.0.0-rc\pwsh.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"
}