I was searching for some code in VSCode in a branch that another developer had made, but couldn't find it even though I have their branch and haven't made any changes.
Then I noticed there was a little red triangle in VS Code where their changes should be:
I opened it and low and behold there code was there:
As you can see I haven't made any changes to their branch.
git status
On branch feature/featurebranch
Your branch is up to date with 'origin/feature/featurebranch'.
nothing to commit, working tree clean
I have a few extensions installed in VSCode.
I suspect that GitLens is the culprit. Is there a configuration that I can make so that it's not hiding code that it actually in the file? If I open the file in Notepad++ or Notepad it shows the file as it currently is.
My VSCode version info is:
Version: 1.74.2 (user setup)
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:29:14.590Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No