VSCode:在最新更新后在工作区上设置终端 shell [英] VSCode: set terminal shell on workspaces after latest update
问题描述
在 VSCode 上,如果我需要在某个工作区使用不同的终端 shell,我已经在工作区文件 (.code-workspace
) 中添加了以下设置:
设置":{terminal.integrated.shell.windows":path\to\the\shell.exe"}
在最新更新(2021 年 4 月 - 1.56 版)之后,这不再起作用,我收到此警告:
<块引用>已弃用,请改用 #terminal.integrated.defaultProfile.windows#
如果我用我得到的建议名称替换设置名称:
<块引用>此设置只能在应用程序用户设置中应用
如何为每个工作区设置不同的终端 shell?
不幸的是,这里有同样的问题:
请注意,之前的错误消息已消失.我怀疑这个修复"将很快发布到 v1.56,而不是等待 v1.57.
On VSCode, if I needed a different terminal shell on a certain workspace, I had added the following setting in the workspace file (.code-workspace
):
"settings": {
"terminal.integrated.shell.windows": "path\to\the\shell.exe"
}
After the latest update (April 2021 - version 1.56) this doesn't work anymore and I get this warning:
This is deprecated, use
#terminal.integrated.defaultProfile.windows#
instead
If I replace the setting name with the suggested one I get:
This setting can be applied only in application user settings
How can I set a different terminal shell per workspace?
Unfortunately, here is the same issue: https://github.com/microsoft/vscode/issues/123031 from https://github.com/microsoft/vscode/issues/123133.
Issue 123133 was closed 05/05/2021 with a temporary fix, see that issue and https://github.com/microsoft/vscode/commit/006591a7cfa31b9778e712b742b6e37f4afd0ed9. Here is my Insiders Build workspace settings file after the fix:
Note the previous error message is gone. I suspect that this "fix" will be in a point release to v1.56 fairly soon rather than waiting for v1.57.
这篇关于VSCode:在最新更新后在工作区上设置终端 shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!