Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git的vscode-git将不会继续,除非您退出编辑器_Git_Macos_Visual Studio Code - Fatal编程技术网

git的vscode-git将不会继续,除非您退出编辑器

git的vscode-git将不会继续,除非您退出编辑器,git,macos,visual-studio-code,Git,Macos,Visual Studio Code,我已经使用VisualStudio代码作为git编辑器很长一段时间了。然而,在最近的某个时刻,一旦我在git打开的新vscode窗口中编辑了rebase/commit消息,当我单击vscode的“close”按钮时,git将不再继续下一步。窗口已关闭,但vscode进程仍在运行-我必须从dock中退出它,git才能继续 由于这在我的另一台Mac上仍然可以正常工作,我尝试完全重新安装Visual Studio代码(删除所有配置),但在重新安装后,同样的行为发生了。我在两台Mac上都有相同的git配

我已经使用VisualStudio代码作为git编辑器很长一段时间了。然而,在最近的某个时刻,一旦我在git打开的新vscode窗口中编辑了rebase/commit消息,当我单击vscode的“close”按钮时,git将不再继续下一步。窗口已关闭,但vscode进程仍在运行-我必须从dock中退出它,git才能继续

由于这在我的另一台Mac上仍然可以正常工作,我尝试完全重新安装Visual Studio代码(删除所有配置),但在重新安装后,同样的行为发生了。我在两台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代码时,它似乎变得“最小化”。类似的修复问题也出现了。修复是(但请先阅读整个线程):


一个类似的问题正在解决中。修复是(但请先阅读整个线程):


它和这个有关吗?或者可能是这个@我不这么认为——它们似乎是老问题了。我更新了我的问题,包括我使用的是最新的稳定版本。只需使用Cmd+Q而不是关闭按钮?@KeatsPeeks这是我最近在那台机器上做的事情,但我很感兴趣的是,问题的原因是什么。是与此相关吗?或者是与此相关@我不这么认为——它们似乎是老问题了。我更新了我的问题,包括我使用的是最新的稳定版本。只需使用Cmd+Q而不是关闭按钮?@KeatsPeeks这是我最近在那台机器上做的事情,但我对问题的原因很感兴趣。抱歉,我不知道这与我的案例有什么关系。它是关于一个特定的语言插件或进程无法退出。它是关于一个进程在控制台关闭时拒绝退出。和你的症状完全一样。Windows上也会发生这种情况,但这是Linux。好的,我会尝试看看是否安装了导致这种情况的插件。抱歉,我不知道这与我的案例有什么关系。它是关于一个特定的语言插件或进程无法退出。它是关于一个进程在控制台关闭时拒绝退出。和你的症状完全一样。在Windows上也会发生这种情况,但这是Linux。好的,我会尝试看看是否安装了导致这种情况的插件。
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