zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
43.94k stars 2.36k forks source link

"file_scan_exclusions" not working in local (folder) settings #7195

Open kharenzze opened 6 months ago

kharenzze commented 6 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Defining "file_scan_exclusions" in a project .zed/.settings does not work, it keeps including files in searches. Defining that array in global settings works perfectly.

Environment

Zed: v0.119.21 (Zed) OS: macOS 14.3.0 Memory: 16 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

danielweck commented 6 months ago

Yes I noticed that too. I had no choice but to create a global file_scan_exclusions configuration for all projects / workspaces opened in Zed, which obviously isn't a scalable solutions as the config itself isn't portable from one project to another (different file names / paths, which may in fact conflict).

Related issue: https://github.com/zed-industries/zed/issues/7071

usizu commented 3 months ago

It would be a great and useful feature to have per-project file_scan_exclusions settings, to meet the needs of unique project setups.