# Ensure bundled files are opened as read-only \(\#36299\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6f2e7c355ec4d2b68285047258af7e5d72596b33

Requested commit: 6f2e7c355ec4d2b68285047258af7e5d72596b33

Commit: 6f2e7c355ec4d2b68285047258af7e5d72596b33

Tree: 8eaf12a03f56686bd86d7a6d115927c38d786093

Author: Finn Evers

Committer: GitHub

## Message

```
Ensure bundled files are opened as read-only (#36299)

Closes #36297

While we set the editor as read-only for bundled files, we didn't do
this for the underlying buffer. This PR fixes this and adds a test for
the corresponding case.

Release Notes:

- Fixed an issue where bundled files (e.g. the default settings) could
be edited in some circumstances
```

## Parents

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

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