Reputation: 87
I have git version 2.32.0.windows.2, VSCode version 1.68.1 and CodeLens doesn't show up when there are conflicts.
Git recognizes the conflicts but VSCode somehow fails to show me the conflict so I can't manage it with CodeLens.
The image is not that self explanatory, but it seems like the left part where some code should be shown is empty, and in the original README.md file, the usual UI where you can select which changes to keep and discard is simply not there.
Upvotes: 3
Views: 2244
Reputation: 9
Version: 1.70.2 (Universal) Commit: e4503b30fc78200f846c62cf8091b76ff5547662 Date: 2022-08-16T05:36:37.829Z Electron: 18.3.5 Chromium: 100.0.4896.160 Node.js: 16.13.2 V8: 10.0.139.17-electron.0 OS: Darwin x64 21.6.0
I faced the same issue.
Upvotes: 0
Reputation: 87
The problem was isolated and solved once we observed that VSCode was failing only on the readme.md file and not on other files.
Something was wrong about the file, trying different approaches we found that changing the readme.md file encoding to UTF-8 solved the problem. It was UTF-16LE before by default.
Solution:
README.md
fileThis solved my issue correctly and didn't find anything online that links directly to what beginners like me might look for, for example "CodeLens" or "Git Conflicts", this is an older post directly from GitHub that I found.
(When you encounter this kind of problem error messages you might search for all link to git problems and not encoding or vscode problems)
Upvotes: 3