-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Describe the Bug
When using Git Graph (version 1.31.5) with VS Code Insiders (version 1.107.0-insider) on Windows, the built-in git blame editor decorations do not appear when I open a diff via Git Graph.
- Blame decorations work as expected when opening a regular file (non-diff).
- Blame decorations also work when I open a diff via VS Code’s own Source Control Graph.
- But blame decorations do not appear when opening a diff via Git Graph’s commit → file → diff workflow.
I have verified that the relevant settings are enabled:
"git.blame.editorDecoration.enabled": true
"git.blame.editorDecoration.template": "${authorName}, ${authorDateAgo} • ${subject}"
Steps to Reproduce
- Use VS Code Insiders 1.107.0-insider on Windows + Git Graph 1.31.5.
- Ensure
git.blame.editorDecoration.enabledistrue. - Open a git repository folder/workspace.
- In Git Graph — open commit history, select a commit, then open a changed file from that commit to view the diff in the diff editor.
- Click on or navigate lines on either side of the diff.
Observed behavior:
- No blame decorations or annotations appear in the diff editor (neither inline nor gutter nor status bar).
Expected behavior:
- Blame decorations / annotations should appear per line in the diff editor, similarly to when diffs are opened via VS Code’s built-in Source Control Graph.
Environment
VS Code: 1.107.0-insider (commit fae32c4c21fc40c9caaf480b4f7f28ca077a2be6)
Git Graph: 1.31.5
OS: Windows 11
Git: 2.45.1.windows.1
Settings: git.blame.editorDecoration.enabled = true
git.blame.editorDecoration.template = "${authorName}, ${authorDateAgo} • ${subject}"
Why this matters / Use case:
Having blame annotations in diffs is very helpful when reviewing commit history or inspecting changes: it shows who made each change. The fact that this works when using the built-in diff mechanism, but fails when using Git Graph’s diff UI, suggests the extension’s method of opening diffs may bypass or fail to trigger VS Code’s blame-decoration logic.
Request / Ask:
- Please adjust the extension so that when it opens a diff editor, it does so in a way that lets VS Code’s built-in git blame decorations apply.
- If there is a limitation or API restriction preventing this, please document it or provide a workaround (or an option) to enable blame decorations in diffs opened by Git Graph.
Thank you for the terrific improvements in this fork. Enabling line blame decorations in diff editors would make it even better.