Reputation: 181
A couple of days ago I was trying to speed up Visual Studio Code by removing some extensions. I think I have removed an extension that would display the Git branch in the bottom left of the status bar.
Does anyone have any idea how to get it back again?
Upvotes: 6
Views: 12401
Reputation: 580
In case anyone runs into this while using VSCode Remote Development via SSH, I found that simply disconnecting and connecting again caused the branch name to come back.
Upvotes: 0
Reputation: 11378
I originally tried Timothy G.'s answer - I was indeed without the referred option checked - but that alone did not do the job.
I then realized that clicking in VS Code's git side menu option mentioned "No Safe Repos were found" (it claimed my repo was owned by another user). There was a button saying "Manage unsafe repos" and the moment I opened my repo this way, I believe that acted as confirming repo's validity.
I was then finally able to see the branch at the bottom.
Upvotes: 0
Reputation: 9145
I don't think there is an extension that controls that. I believe that is just built into Visual Studio Code.
There is however a right click option on the status bar for hiding this:
Do you accidentally have it hidden? If so, just right click the status bar and select "Source Control" to enable it.
After update 1.75.1 of Visual Studio Code, this option has been replaced with "Source Control Checkout". When disabled, the branch is hidden on the status bar:
Upvotes: 10
Reputation: 181
Ok ,
It turns out I had DISABLED Git vscode which comes bundled with vscode.
Upvotes: 1