Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Commits view not showing in VSCode Source Control panel

For newer version: detach commits view

Outdated:

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:

  • The tabs are available at the bottom of the panel
  • I am able to select/unselect which tabs to show from the three dot menu

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:

  • I have checked VScode settings and both the user and workspace settings are exactly the same
  • A git repo exists in this directory (the tabs used to show fine)
  • I do not want to do this from the command line
like image 693
blackhaj Avatar asked Jan 21 '26 14:01

blackhaj


2 Answers

after an update here is the new way to find these settings

  1. in settings I typed @ext:eamodio.gitlens source
  2. then I un-checked the Group the <VIEW_TYPE> view

image of settings page

OR simply...

quickest way to fix

like image 117
Matty Avatar answered Jan 24 '26 21:01

Matty


For me the issue was I hadn't setup the extension properly, go to the extension's page -> Settings -> Get Started -> Open Quick Setup -> Views -> Source Control Layout

Step By Step Image

like image 30
Hamza Abdullah Avatar answered Jan 24 '26 19:01

Hamza Abdullah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!