Skip to content

Windows Beta: Git-ignored folder contents disappear with incorrect strikethrough in file tabs #38653

@RandaZraik

Description

@RandaZraik

Summary

Git-ignored folder contents disappear with incorrect strikethrough in file tabs after any change to its content.

Description

When files/folders added/removed from a git-ignored folder, the git-ignored folder contents disappear in the file tree and cause open file tabs to show strikethrough formatting incorrectly until the folder is collapsed and re-expanded.

Steps to trigger the problem:

  1. Create a folder (e.g., IgnoredFolder)

  2. Create .gitignore file and add to it IgnoredFolder.

  3. Add test1 file to IgnoredFolder and open it in new tab. You will already notice the folder IgnoredFolder has no content and you need to collapse and expand again.

  4. Add test2 file to IgnoredFolder.

  5. Again you will notice that IgnoredFolder folder icon is still expanded and files underneath has disappeared.

  6. Also, test1 file name in the tab is strikethrough, as if the file is actually deleted.

  7. Collapsing and expanding the folder again will fix the issue. Files will show up again.

    Image

Expected Behavior:
.gitignored folders should consistently show its contents and open tabs should display normally without incorrect strikethrough formatting.

Actual Behavior:
Folder shows expand icon but contents disappear, and open file tabs display strikethrough formatting until folder is collapsed/re-expanded.

Zed Version and System Specs

Zed: v0.206.0 (Zed Nightly 891a06c)
OS: Windows 10.0.26100
Memory: 31.7 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics || Intel Corporation || 32.0.101.6913

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions