简体   繁体   English

没有得到 GitHub 合并冲突 VSCode 中的顶栏

[英]Not getting GitHub merge conflicts Top-bar in VSCode

I am having trouble getting this Github merge conflict Top-bar to resolve the conflicts in VSCode.我无法获取此 Github 合并冲突顶栏来解决 VSCode 中的冲突。

Have tried adding this command "editor.codeLens": true but no effect.已尝试添加此命令"editor.codeLens": true但没有效果。

This is what i am getting after pulling the changes这就是我在拉动更改后得到的在此处输入图像描述

And this is what i want after pulling.这就是我拉后想要的。 在此处输入图像描述

Any help would be great.任何帮助都会很棒。 Thanks!谢谢!

There is an issue with the VSCode git extension, which can be resolved by disabling the Merge Editor option of the git extension: VSCode git 扩展存在问题,可以通过禁用 git 扩展的Merge Editor选项来解决:

path: settings > extensions > git > Merge Editor路径: settings > extensions > git > Merge Editor

在此处输入图像描述

Or by directly setting the following in the vscode's settings.json :或者直接在 vscode 的settings.json中设置如下:

"git.mergeEditor": false

Also, DON'T NEED TO set editor.codeLens to true in the settings此外, editor.codeLens设置true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM