VSCode SCM tab suddenly disappeared

Viewed 4579

I must have pressed a wrong combination of keys with my crooked fingers which caused the version control tab to disappear from the sidebar.

Then I found source control tab somewhere in VSCode, dragged it into the sidebar, it shows the changes, however, the icon is completely different and also it doesn't show the number of current changes.

What happened? In the below screenshot the yellow icon is what I have for SCM now.

Thanks enter image description here

6 Answers

I had to use the View: Reset View Locations command to solve this problem in Visual Studio Code version 1.47 (macOS - Catalina).

To do this, just press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Linux/Windows), type workbench.action.resetViewLocations, then press Enter.

Release notes - May 2020 (version 1.46)

As @rioV8 commented - what solved it for me was to right click on the icon and click "Reset Location"

I am not sure what you actually dragged to the activity bar vscode is really modular in this way; hard to say without being there, but you can re-enable SCM button.

Even if you use the short cut to open the source control view (CTRL + SHIFT + G, it will disappear again after you focus out of it (when it's not enabled).

enter image description here

To re-enable it, right-click anywhere on the Activity Bar and select 'Source Control'

enter image description here

Try right clicking on the bar and you should see a menu like the one below

right click menu

recheck the source control and the icon should appear.

From version 1.46 it is now possible to drag and drop panels and views

If a panel/view is not in a spot you want and you want it back in its original place you can Right Click on the panel/view header and choose Reset Location.

For people who applied the methods above but still could not see the source control panel where you could jump to editted files quickly but only the side bar, here is the way you can fix it:

After you have got the source control panel appeared, right click any available tabs you have inside the panel, such as commits, file history, branches etc. Then make sure you chose the Source Control.

enter image description here

Related