# settings_ui: Make open project settings action open settings UI \(\#42669\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3da4d3aac3d884435bdf9f8f9a946a07175400ec

Requested commit: 3da4d3aac3d884435bdf9f8f9a946a07175400ec

Commit: 3da4d3aac3d884435bdf9f8f9a946a07175400ec

Tree: c47bcb91ec407f654be1ca435a67139e151096dd

Author: Anthony Eid

Committer: GitHub

## Message

```
settings_ui: Make open project settings action open settings UI (#42669)

This PR makes the `OpenProjectSettings` action open the settings UI in
project settings mode for the first visible worktree, instead of opening
the file. It also adds a `OpenProjectSettingsFile` action that maintains
the old behavior.

Finally, this PR partially fixes a bug where the settings UI won't load
project settings when the settings window is loaded before opening a
project/workspace. This happens because the global `app_state` isn't
correct in the `Subscription` that refreshes the available setting files
to open. The bug is still present in some cases, but it's out of scope
for this PR.

Release Notes:

- settings ui: Project Settings action now opens settings UI instead of
a file
```

## Parents

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

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