# ui: Split up \`ContextMenu::render\` into smaller methods \(\#26489\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 55a90f576a26069dd602282b4da4590131f054d1

Requested commit: 55a90f576a26069dd602282b4da4590131f054d1

Commit: 55a90f576a26069dd602282b4da4590131f054d1

Tree: 7f34516007836fbbb039282d526aa31740666abb

Author: Marshall Bowers

Committer: GitHub

## Message

```
ui: Split up `ContextMenu::render` into smaller methods (#26489)

This PR refactors the `ContextMenu::render` method to extract a couple
smaller methods from it.

The existing `render` method was suffering from its size, with some of
the `match` arms not being able to be formatted with `rustfmt`.

Release Notes:

- N/A
```

## Parents

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

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