# settings_ui: Enable editing project settings for worktrees without setting file \(\#40971\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 05c2cc02542cdfa55787923f6411e49d9c4943c3

Requested commit: 05c2cc02542cdfa55787923f6411e49d9c4943c3

Commit: 05c2cc02542cdfa55787923f6411e49d9c4943c3

Tree: c35290e737bceaaec6eaced72178fc08a057a096

Author: Anthony Eid

Committer: GitHub

## Message

```
settings_ui: Enable editing project settings for worktrees without setting file (#40971)

I made three significant changes in this PR. 

1. `SettingsWindow::fetch_files` now creates
`SettingsUiFile::Project(..)` for any worktree that contains no project
settings.
2. `update_settings_file` now creates an empty settings file if a
worktree doesn't contain one.
3. `open_current_settings_file` also creates a settings file if the
current one doesn't exist.

Release Notes:

- settings ui: Enable editing project settings for worktrees that don't
have a project setting file.
```

## Parents

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

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