# gpui: Support prompt_for_paths in TestPlatform \(\#58139\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 09165c15dc5d1fea93604231eaf30ca4c25f1cd6

Requested commit: 09165c15dc5d1fea93604231eaf30ca4c25f1cd6

Commit: 09165c15dc5d1fea93604231eaf30ca4c25f1cd6

Tree: 745e10a4a0abd0823f031dc419e6193ed385df42

Author: Nathan Sobo

Committer: GitHub

## Message

```
gpui: Support prompt_for_paths in TestPlatform (#58139)

Implements the previously-`unimplemented!()`
`TestPlatform::prompt_for_paths` so tests can drive the platform Open
dialog deterministically.

Adds `TestAppContext::simulate_path_prompt_response` and
`did_prompt_for_paths`, mirroring the existing `prompt_for_new_path`
test helpers (`simulate_new_path_selection`). The simulated response
validates that callers don't return multiple paths when
`PathPromptOptions::multiple` is false.

Release Notes:

- N/A
```

## Parents

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

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