简体   繁体   中英

Accept Incoming Change not appearing in VS Code (VS Code Version 1.61.2)

I have a problem, where I don't see the toolbar for merge conflicts in Visual Studio Code even after enabling the editor.codeLens .

启用 codeLens

代码示例

Any idea what else it can be? I tried to restart VS Code, disabling/enabling editor.codeLens. I even installed/uninstalled Gitlens - Git supercharged.

Thank you in advance.

Reference for my inputs are from: Accept Incoming Change not appearing in VS Code

I uninstalled the VSCode and reinstalled it but doens't work. Then I completely uninstalled the VSCode along with its data, caches, temporary files And Reinstalled it and Worked like a charm.

Before that I tried enabling CodeLens and Adding VSCode as default merge tool, difftool and whatever is available on the internet, nothing worked.

Basically what I deduce is, there is some extension that have malfunctioned your VSCode git merge tool or its settings. You can try uninstalling all extensions first before completly uninstall the VSCode

Uninstall Completely


For Mac run following command in terminal see this answer

rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist 
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/

For Windows see this answer

Go to Path: C:\Program Files\Microsoft VS Code
Double Click uninstall.exe
This will uninstall VS Code from Your Windows OS and
After uninstallation delete code folder also.
Open Run (Win + R) and Enter %appdata% Press Enter
Delete the folder code

Delete this folder as well %USERPROFILE%\.vscode according to this answer

In case someone still can't solve this issue. You can turn off the Git: Merge Editor from Setting menu.

合并编辑器选项

VSCode merge conflict options not displaying

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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