vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Git Graph icon not showing up next to repos after latest VSCode update

Open akerone opened this issue 1 month ago • 13 comments

Describe the Bug After clicking the "Restart to Update" button on VSCode, the Git Graph icon stopped showing next to each repo in the Source Control tab. The extension still works, as I can open it from the bottom bar, but I can no longer open arbitrary graphs from different repos without manually switching through the bottom bar.

See the screenshot. Outlined in green is where the git graph icon for that repo used to appear.

Steps to Reproduce Steps to reproduce the behaviour:

  1. Install latest VSCode Version

Expected Behaviour Bring back the per-repo icon.

Environment

⚠ Please make sure you complete all of the required sections of this template. Without this required information, it will be harder to replicate this bug, and cause additional delays in resolving it.

akerone avatar Nov 13 '25 10:11 akerone

Solution is below for package.json. In older version "group": "navigation" is used to display an icon. In latest version of VSCode "group": "inline" should be used. Now we need two entries to support older and newer version of VSCode. ``` "scm/title": [ { "when": "scmProvider == git && config.git-graph.sourceCodeProviderIntegrationLocation == 'Inline'", "command": "git-graph.view", "group": "navigation" }, { "when": "scmProvider == git && config.git-graph.sourceCodeProviderIntegrationLocation == 'Inline'", "command": "git-graph.view", "group": "inline" },

schnapis avatar Nov 13 '25 11:11 schnapis

I also opened an issue in vscode repo: https://github.com/microsoft/vscode/issues/277107

schnapis avatar Nov 13 '25 11:11 schnapis

It seems there is a bug in latest vscode version. We need to wait for a fix.

schnapis avatar Nov 13 '25 18:11 schnapis

I really hope it's a bug, not a feature. It seems like other things were moved to the "..." menu as a result of 1.106.x update.

deepnight avatar Nov 18 '25 14:11 deepnight

It has been fixed in the following VS Code version:

Version: 1.106.2 (user setup) Commit: 1e3c50d64110be466c0b4a45222e81d2c9352888 Date: 2025-11-19T16:56:50.023Z

I updated VS Code, and the buttons are back.

Arzaghi avatar Nov 21 '25 15:11 Arzaghi

See this comment from a vscode dev https://github.com/microsoft/vscode/issues/277122#issuecomment-3570284976

It appears they have changed the extension API slightly so extensions will need to be updated to restore the full previous behaviour

Here is an example PR of the change required https://github.com/carpaty/github-sync-fork/pull/13/files

AndyEveritt avatar Nov 24 '25 11:11 AndyEveritt

Meanwhile, setting "git-graph.sourceCodeProviderIntegrationLocation": "More Actions" seems to restore the "View Git Graph" icon.

==EDIT==

Never mind, simply updating VS Code to 1.106.2 fixes the issue.

rustyx avatar Nov 24 '25 13:11 rustyx

I still experience the issue with VS Code 1.106.2.

rusitschka avatar Nov 24 '25 15:11 rusitschka

@rusitschka you may miss it at first, because by default it's not visible. Instead it only appears on the "Changes" line on hover

default: Image

hover: Image

sbor23 avatar Nov 25 '25 07:11 sbor23

@sbor23 This is what I was asking on the related vscode issue https://github.com/microsoft/vscode/issues/277122#issuecomment-3570102032

To which they said the extension needs to be updated to restore the original behaviour as extensions now need to contribute to the scm/repository extension (instead of scm/title which I think it was before)


I do not think this has been fully fixed in my opinion.

The buttons used to display in the red box but now only display in the green box Image

This is an issue when you only have a single repo selected in a multi repo project

Image

Hovering over the SCM view then makes the buttons appear.

But this now means you have to look/click in 2 places (ensure correct repo is selected + click graph button) and you need to know that the button will magically appear when the mouse is close

Image

As a minimum can the buttons be permanently visible rather than just when the cursor is close, ideally the buttons can be added back to the Repositories section

AndyEveritt avatar Nov 25 '25 10:11 AndyEveritt

So (I'm not an extension dev so probably wrong) I would think it is this line that needs to be changed from scm/title to scm/repository

https://github.com/mhutchie/vscode-git-graph/blob/d7f43f429a9e024e896bac9fc65fdc530935c812/package.json#L1500C1-L1511C5

AndyEveritt avatar Nov 25 '25 10:11 AndyEveritt

Confirmed that with this change it moves the button to the original location

Image Image

Looks like the group is also inverted in the vscode scm/title endpoint which appears to be a vscode bug

AndyEveritt avatar Nov 25 '25 11:11 AndyEveritt

will this be fixed soon?

bilogic avatar Dec 02 '25 06:12 bilogic