Description
When using VS Code in conjunction with GitLens and Git Graph, Git-related UI components frequently hang or become unresponsive. Specifically, the Source Control sidebar and the Git Graph view stop updating after a sequence of branch operations performed in the integrated terminal. While the UI is frozen, Git commands in the terminal continue to function normally.
Steps to Reproduce
- Install GitLens and Git Graph extensions in VS Code.
- Open Git Graph and create a new branch, ensuring the "Check out" option is selected.
- Modify some code in the workspace.
- Commit and push the changes using the VS Code Source Control sidebar.
- Merge the Pull Request (PR) via the GitHub web interface.
- Return to the VS Code integrated terminal and execute the following:
git fetch upstream main:main
git checkout main
- Observe the issue: There is a high probability that the VS Code UI will hang. Git Graph fails to update its state, and the Source Control view becomes unresponsive.
Expected Behavior
The VS Code Source Control sidebar and the Git Graph view should automatically refresh and reflect the updated repository state (current branch and commit history) immediately after terminal commands are executed.
Actual Behavior
The Git-related UI elements hang. Closing and reopening the Git Graph tab temporarily restores functionality, but the underlying freeze persists until manual intervention. Terminal-based Git operations remain unaffected during this period.
Environment
- Visual Studio Code Version: 1.108.1
- Git Graph Extension Version: 1.35.0 (Issue has persisted for approximately 6 months)
- Operating System: macOS Tahoe 26.2 (Intel)
Additional Context
- The issue seems to be triggered specifically when switching back to a main branch via the terminal after the UI-based workflow (Git Graph/Source Control) was used for the initial branch creation and push.
- Restarting the extension host or reopening the specific view tabs acts as a temporary workaround.
Description
When using VS Code in conjunction with GitLens and Git Graph, Git-related UI components frequently hang or become unresponsive. Specifically, the Source Control sidebar and the Git Graph view stop updating after a sequence of branch operations performed in the integrated terminal. While the UI is frozen, Git commands in the terminal continue to function normally.
Steps to Reproduce
git fetch upstream main:maingit checkout mainExpected Behavior
The VS Code Source Control sidebar and the Git Graph view should automatically refresh and reflect the updated repository state (current branch and commit history) immediately after terminal commands are executed.
Actual Behavior
The Git-related UI elements hang. Closing and reopening the Git Graph tab temporarily restores functionality, but the underlying freeze persists until manual intervention. Terminal-based Git operations remain unaffected during this period.
Environment
Additional Context