visual-studio-code

Git Commits view not showing in VSCode Source Control panel


UPDATES:

  1. The initial issue was due to me not having the Gitlens extension active in that workspace
  2. As of Nov 2024, Gitlens have updated the extension grouping the sections. See the response by Matty for guidance on how to fix this

Problem:

When I open the Source Control panel in VScode, normally I am able to see any diffs and at the bottom of the panel I can open/close various tabs such as Commits, Branches, Remotes etc. These tabs have all disappeared for a specific repo.

Here is how it should look:

However, they are not showing on this specific repo. Here's how it looks on the repo in question:

  1. I can't see the tabs at the bottom of the panel
  2. I am unable to show/hide them from the three dot menu

Notes:


Solution

  • It was down to not having Gitlens enabled in the workspace 😬