Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git diff indicators in scrollbar not cleared when committing via command palette #27340

Open
RandaZraik opened this issue Mar 23, 2025 · 2 comments
Labels
git Git integration feedback needs-repro Needs reproduction steps / someone to reproduce

Comments

@RandaZraik
Copy link
Contributor

RandaZraik commented Mar 23, 2025

Summary

In Window, Git diff indicators in scrollbar are not cleared when committing via command palette for a WSL project.

When committing changes using (git: commit) from the command palette, the diff indicators in the scrollbar remain visible in the current file even after a successful commit. They only disappear after manually reopening the file.

Steps to reproduce:

  1. Open a Git-tracked project in Zed.
  2. Make changes to a file.
  3. Commit using (git: commit) from the command palette.
  4. Notice that the diff indicators in the scrollbar are still visible.
  5. Close and reopen the file, the indicators are now gone.

Actual Behavior:
Even after committing changes via the command palette, the diff indicators remain visible in the open file. They only disappear after closing and reopening the file.

Expected Behavior:
After a successful commit, the diff indicators in the scrollbar should be cleared automatically to reflect a clean working state.

Zed Version and System Specs

Zed: v0.178.0 (Zed Dev ed6bf7f)
OS: Windows 10.0.26100
Memory: 31.7 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3070 Ti Laptop GPU || NVIDIA || 529.01

@notpeter
Copy link
Member

I can't reproduce (on macOS)

mkdir /tmp/27340
cd $_
git init
echo foo > foo.txt
git add foo.txt
git commit -m foo
echo bar > foo.txt
zed . foo.txt

cmd-shift-p -> "git: commit" -> type a commit message -> click "commit tracked"

Do these steps trigger the behavior for you?

@notpeter notpeter added git Git integration feedback needs-repro Needs reproduction steps / someone to reproduce labels Mar 24, 2025
@RandaZraik
Copy link
Contributor Author

RandaZraik commented Mar 24, 2025

The issue didn't occur for the new folder.
But I've actually found another thing, this issue happens if I'm trying to open a project that resides in WSL from Windows. I tried to reproduce in a different project that exists outside WSL, and it works fine.

i.e. project path: \\wsl.localhost\Ubuntu\home\user\projects\project_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
git Git integration feedback needs-repro Needs reproduction steps / someone to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants