Source Control in VS Code activity bar

Recently the source control icon (git extension) in the activity bar in vs code shows more than changes in code.

As can be seen here the icon adds up the changes in my code, and from the west workspace it also adds Manifest, Changed, Clean and Not Cloned. I am only interested in the 8 changes in my code but the source control icon shows 73. How do I make it not add the numbers for Manifest, Changed, Clean and Not Cloned.

I *think* this started when vs code auto updated itself to the latest version but am not 100% sure.

Regards /Ruben

Parents
  • Hi there,

    I think this question should be directed to the creators behind VS Code but a quick test would be to try to install an earlier version of the git extension and see if the problem is still persistent. If it is, then it indicates that the issue is indeed the newest release:

    regards

    Jared

  • Thanks Jared,

    The git extension is bult-in so to try an earlier version of this I have to reinstall an earlier version of VS Code, which I was hoping to avoid since there is no easy way to rollback to an earlier version.

    This possibly have something to do with the nRF Connect extension which adds information from the west manifest  to source control according to this link:https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_source_control.html This is exactly the information I don't want to be shown on the source control icon in the activity bar, which in my opinion isn't very useful in normal day-to-day work. I can't find a way to disable this.

    I will see how much work it is to downgrade vs code and test that or just live with this.

    Thanks /Ruben

  • Hi,

    I discussed this with the developers and apparently it has been like this from the beginning and it's not something that can be disabled. Only option is to collapse the window,

    regards

    Jared 

  • Hmm, collapse the window?

    I don't mind the numbers for the west manifest in the source control pane. It is the number in the icon in the activity bar that bothers me.

    Thanks /Ruben

Reply
  • Hmm, collapse the window?

    I don't mind the numbers for the west manifest in the source control pane. It is the number in the icon in the activity bar that bothers me.

    Thanks /Ruben

Children
  • Hi,

    Ah I see. In that case I don't think there is any solution for it from our side unfortunately,

    regards

    Jared 

  • Hey,

    I'm facing the same issue and found a solution for it.

    In 'Settings > Features > Source Control' you can set the 'Count Badge' to 'focused'.

    Now I can still see the west-workspace changes in the list, but the icon-number only shows the relevant ones. However I don't know if there is a way to select or change the "focus".

    Hope this works for you aswell
    Florian

  • Thanks, this works!

    Exactly what I want and as it has been for me with nrf Connect extension for over a year, just until recently.

    Thanks /Ruben