# zed: Add \`OpenRequestKind\` \(\#34860\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 15353630e4f8f1f3db8f230e078de2f42bdbfb7b

Requested commit: 15353630e4f8f1f3db8f230e078de2f42bdbfb7b

Commit: 15353630e4f8f1f3db8f230e078de2f42bdbfb7b

Tree: b7002acf0c34b0f6b9af94cf9d4d253250f0ec35

Author: Marshall Bowers

Committer: GitHub

## Message

```
zed: Add `OpenRequestKind` (#34860)

This PR refactors the `OpenRequest` to introduce an `OpenRequestKind`
enum.

It seems most of the fields on `OpenRequest` are mutually-exclusive, so
it is better to model it as an enum rather than using a bunch of
`Option`s.

There are likely more of the existing fields that can be converted into
`OpenRequestKind` variants, but I'm being conservative for this first
pass.

Release Notes:

- N/A
```

## Parents

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

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