dracula / dracula/powerlevel10k
VSCode Not Detecting Git Branch Changes When Dracula P10k Theme is Active
- Dominant language
- Shell
- Stars
- 25
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
**Problem Description:**
When using the Dracula Powerlevel10k theme in Zsh, I've observed an unexpected behavior regarding its integration with Visual Studio Code (VSCode). When I switch Git branches directly in the Zsh terminal (using commands like `git checkout `), VSCode does not automatically detect this change and, consequently, does not update the indication of the currently active branch in its interface.
This issue does not occur when I use the default Zsh theme or when I switch back to Bash as my default shell. In these situations, VSCode immediately reacts to branch changes made in the terminal.
**Steps to Reproduce:**
1. Ensure that Zsh is set as your default shell.
2. Configure the Zsh theme to `dracula/powerlevel10k`.
3. Open a Git project in VSCode.
4. In the integrated terminal of VSCode (or any other Zsh terminal), navigate to the Git project directory.
5. Execute a command to switch branches, for example: `git checkout `.
6. Observe that the Zsh terminal reflects the branch change (you can verify with `git status`).
7. Check the active branch indication in VSCode (usually in the bottom left corner). It will **not** automatically update to the new branch.
8. If you switch the Zsh theme to a default theme or revert to Bash and repeat the steps, VSCode will update the branch indication correctly.
**Expected Behavior:**
When switching Git branches in the Zsh terminal, VSCode should automatically detect this change and update the active branch indication in its interface in real-time.
**Current Behavior:**
VSCode does not automatically detect Git branch changes made in the Zsh terminal when the Dracula Powerlevel10k theme is active.
**Additional Information:**
* **Operating System:** Linux pop-os 6.12.10-76061203-generic #202412060638~1743109366~22.04~1fce33b SMP PREEMPT_DYNAMIC Thu M x86_64 x86_64 x86_64 GNU/Linux
* **Zsh Version:** zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
* **Powerlevel10k Version:** master (51d0e0a)
* **VSCode Version:** 1.99.3
**Troubleshooting Attempts:**
* I tested switching back to the default Zsh theme, and the issue disappeared.
* I tested using Bash as the default shell, and the issue also did not occur.
I believe there might be some interaction between how the Dracula Powerlevel10k theme updates the prompt with Git information and VSCode's change detection mechanism.
Any help or guidance in resolving this issue would be greatly appreciated.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue in a VSCode integrated terminal with Zsh and the Dracula Powerlevel10k theme, then compare branch switching with the default Zsh theme and Bash. Done means VSCode updates its active branch indicator after a Git branch change without changing the shell or theme.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell, vscode
- Domain
- cli, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100