英文:
VS Code 1.78's Source Control Repositories context menu item "Open In Terminal" is not working. Why?
问题
在Ubuntu上使用VS Code时,当我在“源代码控制存储库”中右键单击Git存储库并选择“在终端中打开”时,它不会打开终端。这是最近的更改,因为几天前它还正常工作。
Ctrl-Shift-P命令“终端:创建新终端”正常工作,菜单“查看->终端”也正常工作,尽管“打开新外部终端”也不一致工作。
我假设有某个秘密的日志文件包含了错误消息,但我找不到它。我查看了“查看->输出”下的每个控制台,并查找了~/.vscode下的.log文件。有人知道关于启动新终端错误的信息在哪里吗?
英文:
I'm using VS Code on Ubuntu. When I right click on a git repo in the "Source Control Repositories" and select "Open In Terminal" it doesn't open a terminal. This is a recent change, as it was working just a few days ago.
The Ctrl-Shift-P commands "Terminal: Create New Terminal" works fine, as does the menu "View -> Terminal", although "Open New External Terminal" is not working consistently either.
I assume there is some secret log file that has the error message in it, but I can't find it. I've looked at every console in "View->Output" and looked for .log files under ~/.vscode. Anyone know where errors about starting new terminals is hidden?
答案1
得分: 1
以下是已翻译的内容:
这是在以下问题票中跟踪的错误:
-
打开终端使用Windows命令提示符而不是VSCode集成终端 #182602。此问题已在PR #183118中修复,目前标记为2023年5月发布里程碑。如果您等不及,可以在此处找到一个修复方法,以编辑安装目录的
...\resources\app\out\vs\workbench\workbench.desktop.main.js
的一部分,将openInTerminal
的调用替换为openInIntegratedTerminal
。请注意,当您修改安装文件时,VS Code可能会发出与安全相关的警告(这是预期的)。 -
右键单击源代码控制时,集成终端突然无法加载,而是加载外部cmd.exe #182076。这个问题已关闭,被视为上述问题的重复,因此我假设根本问题是相同的。
<!-- 为了支持这些问题得到修复,请为问题票投上赞,订阅它们以获取关于讨论和进展的通知。查看评论中其他人提供的安装信息,如果您的安装信息尚未列出,请创建一个带有您的评论(复制并粘贴Help: About command
的输出(在VS Code命令面板中运行该命令)),这可能有助于诊断问题。-->
供您参考/学习,这些问题票是通过搜索“github vscode issues 1.78 repo "open in terminal"
”找到的。
英文:
This is a bug tracked in the following issue tickets:
-
Open in terminal uses windows cmd instead of VSCode integrated terminal #182602. A fix for this one has been made in PR #183118, and is currently marked as going in the May 2023 release milestone. If you cant wait, there's a hotfix described here, to edit part of your installation's
...\resources\app\out\vs\workbench\workbench.desktop.main.js
to replace a call toopenInTerminal
withopenInIntegratedTerminal
. Note that VS Code might issue a security-related warning when you tamper with the installation's files (by-design). -
Integrated Terminal suddenly will not load from right click on source control, loads external cmd.exe instead #182076. This one is closed as a duplicate of the above, so I assume the underlying issue is the same.
<!--Give the issue tickets a thumbs up to show support for them getting fixed, and subscribe to them to get notified about discussion and progress. Take a look at the installation info people have provided in the comments there, and if your installation info is not listed already, create a comment with yours (copy and paste the output of the Help: About command
(run that command in the VS Code command palette)), which may help with diagnosing the issue.-->
For your reference / learning purposes, those issue tickets were found by googling "github vscode issues 1.78 repo "open in terminal"
".
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论