# remote_servers: Dismiss picker on Open Folder click \(\#63628\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 55c0cc36d18cf06c6c54f640a87ce83d09413ae4

Requested commit: 55c0cc36d18cf06c6c54f640a87ce83d09413ae4

Commit: 55c0cc36d18cf06c6c54f640a87ce83d09413ae4

Tree: 4c56657ec70289e3548dbb0d64e3b5c9ecdd9ab9

Author: Matei Oprea

Committer: GitHub

## Message

```
remote_servers: Dismiss picker on Open Folder click (#63628)

# Objective

- Clicking "Open folder" on a remote server entry in the remote projects
picker did not close the picker itself. The picker was staying
underneath the new opened modal for folder/project picker.

## Solution

- Emit `DismissEvent` immediately when `RemoteMatch::OpenFolder` is
confirmed. This mirrors the existing pattern in
`open_remote_project_entry` which already dismisses immediately before
proceeding with the async connect flow.

## Testing

- Did you test these changes? If so, how?
- Are there any parts that need more testing?
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] 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)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable


Release Notes:

- Fixed the remote projects picker not closing when opening a folder on
a remote server
```

## Parents

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

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