How do you hide the "updates available" badge for VSCode extensions? - visual-studio-code

VSCode has a blue badge on the Extensions tab showing how many extensions updates are available. This thing lights up a couple times per day and it's right beside the badge that tells me if I have uncommitted Git changes. This makes it super distracting because it's right beside a badge that really matters. I care about Git. I definitely do NOT care if every single extension is 100% up to date.
How do I permanently turn off the badges on the Extensions tab?
Edit: I'm aware that you can right-click and "Hide badge", but this only gets applied to one vscode window and the badges re-appear as soon as you restart that window.

A commit has just been added to vscode (closing the issue cited below) to enable the persistence of hiding those view badges, see Ensure badge state is persisted in activity bar cache. Shouldbe in the next Insiders Build and Stable v1.76 early March 2023.
As you noted in the comment, right-clicking and Hide Badge (see How to disable blue notification badges on VS Code?) is not remembered between reloads of vscode.
I don't think there is a way to do that currently, so upvote the github issue
Persist state of numbered-badges hiddenness

Related

VSCode: How to see blocks with a list of branches, stashes, etc. again?

With one of the latest updates to the VSСode, the expandable blocks with the list of branches, stesh, local history, etc. disappeared in the version control panel.
And if you right-click on the modified files, there is no stash changes option.
Questions:
How to see blocks with a list of branches, stashes, etc. again.
How to return to the context menu of the modified files the item for working with git stash?
UPD 21.08.22: the problem was in GitLens, which I removed. Reinstalling GitLance brought back all the items I needed.
Go to vs code extensions, install the gitLens extension pack.
gitLens
Latest version of vscode does not hide this. If you want to bring it back, you just need to Right Click on SOURCE CONTROL bar then pick the feature you want to display.
the problem was in GitLens, which I removed. Reinstalling GitLance brought back all the items I needed.

How to get rid of GitLen+ Pro screen in VS Code?

I installed GitLens in VS Code. Then it asked if I wanted to try the GitLens+ features. I clicked "Yes". Now I am stuck at the welcome screen and can't get past it. Any ideas how to get rid of this annoying screen?
Uninstall gitlens extension. Productivity extensions shouldn't reduce productivity by putting up adds that can't easily be closed.
I had the same problem, but I was able to solve it by following the steps below.
Open the sidebar extension
Click the down arrow to the right of the uninstall
Install another version
Install 11.7.0
Reload
But there was no Gitlens in the sidebar
So next
"git lens: show welcome view" in the command palette
Select "git lenses layout" in "view" of "quick setup"
Gitlens is displayed in the sidebar
Then install the latest version
Gitlens is displayed in the sidebar
I hope it helps you even a little.
Go to VS Code command Pallete and select GitLens+: Sign out of Gitlens+
that should get you to the previous experience.
you can also use the the VSCode Command Pallete to display the views you want, such as
I think I had the same issue on Windows (now I'm on my mac) so I went back to Windows, created a new account, and started the trial since logging off of my account on Windows didn't result in that scenario.
I couldn't reproduce it on Windows either.
I'm thinking that might be a glitch, I'm sure you already tried to close VSCode and open again, so, maybe try to sign out and sign in again.
If you want to remove the "home" view, use the elipses on the top right and untick it. Also, check if the other views are enabled.
The problem here is that when we install GitLens extension then all the GitLens features and buttons are added under the generic source control tab (Ctrl+shift+G). Even though GitLens creates a new tab of its own and it looks like all features and buttons are hiding behind the welcome screen. This is not the case and everything but the welcome screen is under the generic source control tab. Poor design choice indeed.
Hide GitLens+ Features from the Command Palette GitLens+: Hide GitLens+ Features
To restore from the Command Palette GitLens+: Restore GitLens+ Features
Step 1. Uninstall GitLens
This avoids fiddling with settings to try to stop it being nag-ware.
Step 2. Install Git Graph
This has the nicest "railway-track" display of commits that I have come across, although the dev seems to be not responding to contact during 2022.
An alternative is Git History, which remains under active development, although its railway-track display is less compact and efficient.

PR 104923 Make clicking in scrollbars move by page, how and where do i set it to true?

In November 2020 VSCode got a PR #104923.
It made it possible to click in the scrollbar in the editor, to move 1 page at a time, in stead of jumping somewhere.
So the normal scrollbar click behaviour in windows.
I have searched the settings and online everywhere, but I have no idea where and how, I can set the parameter to true.
About the parameter itself:
In this PRT it says on sep 16 2020:
"I made the setting editor.scrollbar.gutterClickMovesByPage default to false"
And near the end it says:
"Rename option to scrollByPage".
So what is its name, and where can I find it.
Thanks!
(I use VSCode version 1.55.0)
On Linux, adding in ~/.config/Code/User/settings.json:
{
"editor.scrollbar.scrollByPage": true
}
seems to have done the trick for me. Nowhere documented indeed and https://github.com/microsoft/vscode/issues/43564 still shows unreleased, while commits did got tagged with release versions. It took me some time today to figure out how to enable this.
EDIT: You need to restart VSCode in order to have this option considered.
To find the settings.json file's location: on Linux vscode, after opening the Settings, just hover over the User tab in the first line and it shows the file location. Probably that's the same on other platforms.
Option does not show in the list of known and documented options from UI.
That's bad that they left the jumpingbars by default instead of the scrollbars. When using a touchpad and not a mouse, that's really frustrating to have these jumpingbars.

How to show a badge count on the custom viewsContainers icon in my vscode extension?

In my vscode extension, I want to show a badge count on the viewsContainers icon, just like this:
Is there any way to do this? Thanks for your help.
That could be part of VSCode 1.72 (Sept. 2022), since issue 62783 was implemented with PR 159679.
It is available today in VSCode insiders.
badges on custom activities added to activity bar by extensions
It would come helpful if extensions which create new activity in activity bar could also display a badge with a count. For example Gruntfuggly/todo-tree#22 has request to show number of TODO/FIXME found in the project.
Note: with PR 157462, you will also be able to hide search result decoration:
search.decorations.colors: Controls whether search file decorations should use colors.
search.decorations.badges: Controls whether search file decorations should use badges.

GUI for "svn blame" with a slider for history

Does anyone know UI tool (Eclipse plugin would be great, but any other, for Linux/Windows is acceptable) that allows to see difference of some part of code, but also allows switch between revisions quickly, e.g. by using slider.
I like the Team -> Show Annotation... functionality. It colors the left side of the editor and groups changed lines by color. When you hover over one section you get the commit details (revision/author/date/comment).
I've used SVN time lapse view with some success.
http://code.google.com/p/svn-time-lapse-view/
It would be nice if Tortoise SVN blame included this history slider feature.