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 enabled

code example

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

torek
  • 448,244
  • 59
  • 642
  • 775
Himalaya
  • 21
  • 2
  • Any Luck with this issue? – Taha Malik May 06 '22 at 21:35
  • Hi, sorry for the late response. Yes, I found a workaround. I installed a different extension for SSH. When I started using Remote - SSH (the one with 12.2m downloads) the toolbar suddenly appeared. Before I used SSH FS. Maybe you have an extension installed that has a problem with the toolbar like I had. @TahaMalik – Himalaya Aug 11 '22 at 06:39

2 Answers2

2

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

merge editor option

VSCode merge conflict options not displaying

Ganda Rain Panjaitan
  • 833
  • 1
  • 12
  • 28
0

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 terminalsee 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

Taha Malik
  • 2,188
  • 1
  • 17
  • 28