# Add support for the \`"\.\.\."\` entry in \`read_only_files\` \(\#64222\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/169a2b11ab17407c987aa78187c91a7c665fb2d5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 169a2b11ab17407c987aa78187c91a7c665fb2d5

Requested commit: 169a2b11ab17407c987aa78187c91a7c665fb2d5

Commit: 169a2b11ab17407c987aa78187c91a7c665fb2d5

Tree: 6567f111f5025e4c419ed0db1e7fa3d432a7110d

Author: Dom Porada

Committer: GitHub

## Message

```
Add support for the `"..."` entry in `read_only_files` (#64222)

## Objective

Let projects add read-only file patterns without repeating the patterns
inherited from user settings.

## Solution

Extend the `"..."` behavior introduced in #62769 to `read_only_files`. A
`"..."` entry includes the inherited patterns. Omitting it replaces the
list, and `[]` clears it.

## Testing

Tested on macOS with settings merge, VS Code import, and project
integration tests. The project test verifies that user and project
patterns both apply while unrelated files remain editable.

To check manually, configure different user and project patterns,
include `"..."` in the project list, and open matching files. Repeat
without `"..."` after restarting Zed to verify replacement.

Linux, Windows, and manual app testing were not performed.

## Self-Review Checklist:

- [x] I’ve reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed’s UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

---

Release Notes:

- Added support for `"..."` in `read_only_files` so project settings can
extend inherited read-only patterns.

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

- [69af529edc8f34277ed432953120ef71c555d949](https://git.cafe/gitcafe/zed/commit/69af529edc8f34277ed432953120ef71c555d949?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/169a2b11ab17407c987aa78187c91a7c665fb2d5?format=markdown)
