Skip to content

file_scan_exclusions excludes files from git panel #33167

Description

@v57

Summary

Git panel should display all git changes

Description

I have added bun.lock, package.json and other non code files to file_scan_exclusions, so they will not make up space in my files list. Problem is that when i think i have commited everything i saw that code not works when i download it from github. I checked if i clean up file_scan_exclusions, i will see code changes and i saw them!
I don't think this is an expected behavior so i'm posting it as a bug

Steps to reproduce:

  1. Create git repository
  2. Create file.txt
  3. Add file.txt to file_scan_exclusions
  4. Check git panel

Expected Behavior:
Git changes should only exclude from .gitignore and .git
Actual Behavior:
Git changes excluded from both .gitignore/.git and file_scan_exclusions

Zed Version and System Specs

Zed: v0.189.5 (Zed)
OS: macOS 15.5.0
Memory: 18 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions