-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Description
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:
-
Create a folder (e.g.,
IgnoredFolder) -
Create
.gitignorefile and add to itIgnoredFolder. -
Add
test1file toIgnoredFolderand open it in new tab. You will already notice the folderIgnoredFolderhas no content and you need to collapse and expand again. -
Add
test2file toIgnoredFolder. -
Again you will notice that
IgnoredFolderfolder icon is still expanded and files underneath has disappeared. -
Also,
test1file name in the tab is strikethrough, as if the file is actually deleted. -
Collapsing and expanding the folder again will fix the issue. Files will show up again.
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