vscode-gitlens
vscode-gitlens copied to clipboard
The commit graph appears blank when opening VS Code
Description
Upon launching VS Code, I've noticed that the commit graph appears to be completely empty or blank. Also , it seems that clicking the refresh button has no effect, as it doesn't update or populate the commit graph as expected.
GitLens Version
v2023.10.2805 pre-release
VS Code Version
Version: 1.83.1 (user setup) Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc Date: 2023-10-10T23:48:05.904Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045
Git Version
git version 2.42.0.windows.2
Logs, Screenshots, Screen Captures, etc
Does it only happen if the Commit Graph is open on start of VS Code or anytime you open the graph?
Can you also please enable debug logging by running the GitLens: Enable Debug Logging command from the Command Palette (F1 or ctrl/cmd+shift+p). This will enable logging to the GitLens & GitLens (Git) channels in the Output pane.
Once enabled, please reproduce the issue, and attach the logs from the GitLens and GitLens (Git) channels.
Thank you!
The problem occurs when I switch between projects or when I open VS Code while the commit graph is pinned. Closing the commit graph and reopening it solves the problem, but it sometimes reoccurs. Logs: Close re-open commit graph.txt GitLens Git.txt GitLens.txt
This appears to be an issue with VSCode not pulling the local webview resource correctly
For more context: it seems to happen when you have a pinned commit graph editor tab, GitLens updates or upgrades, and you reload VSCode. It would then affect all repos/projects that had a pinned graph prior to GitLens updating.
Example repro steps:
- On a repo/project, open the commit graph as an editor tab, and then pin it.
- In the Extensions sidebar, switch GitLens to either Pre-release or Release and then reload VSCode.
- Open the repo with the pinned graph editor tab. The graph appears blank and when using the
Developer: Open Webview Developer Toolscommand, the above error appears in the devtools console.
I will open an issue in the VS Code github page.
Issue created here: https://github.com/microsoft/vscode/issues/197103
Thank you for assisting