【问题标题】:vscode for git - git would not continue unless you quit editorvscode for git - 除非您退出编辑器,否则 git 不会继续
【发布时间】:2017-11-12 20:45:48
【问题描述】:

我使用 Visual Studio Code 作为 git 编辑器已经有一段时间了。然而,在最近的某个时候,一旦我在 git 打开的新 vscode 窗口中编辑 rebase/commit 消息,当我单击 vscode 的“关闭”按钮时,git 将不再继续下一步。窗口已关闭,但 vscode 进程仍在运行 - 我必须将其从 Dock 中退出,以便 git 继续。

由于这在我的另一台 Mac 上仍然可以正常工作,我尝试完全重新安装 Visual Studio Code(删除所有配置),但在重新安装后会出现相同的行为。我在两台 Mac 上都有相同的 git 配置:

[core]
    editor = code --wait
[diff]
    tool = default-difftool
[difftool "default-difftool"]
    cmd = code --wait --diff $LOCAL $REMOTE

我正在使用最新的稳定版本1.13.0,例如,当我开始一个 rebase 时,我没有一个已经在运行的 vscode(尽管我相信这不重要)。当我通过x 按钮关闭它时,Visual Studio 代码似乎被“最小化”了。

【问题讨论】:

标签: git macos visual-studio-code


【解决方案1】:

https://github.com/Microsoft/vscode-go/issues/438 有一个类似的修复问题。解决方法是(但请先阅读整个线程):

Clone the repo https://github.com/Microsoft/vscode-go
cd into the repo
Get the branch with the fix roblou/killProcs
npm install
If you don't have the vsce tool, then npm install -g vsce
vsce package to get the vsix file for the extension
code --install-extension Go-0.6.53.vsix to install the extension from the six
now run vs code as you normally would

【讨论】:

  • 抱歉,我不明白这与我的案子有什么关系。这是关于一个特定的语言插件或进程未能退出。
  • 这是关于一个进程在控制台关闭时拒绝退出。和你的症状完全一样。也发生在 Windows 上,但这是 Linux。
  • 好的,我会试试看我是否安装了导致这种情况的插件。
猜你喜欢
  • 2021-04-14
  • 2019-02-11
  • 2012-03-19
  • 2017-06-17
  • 2011-07-27
  • 1970-01-01
  • 1970-01-01
  • 2013-11-12
  • 1970-01-01
相关资源
最近更新 更多