# Rename \`model\` based variable names to \`entity\` \(\#24198\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8c7096f7a62b73393898014c8694599768aaa921

Requested commit: 8c7096f7a62b73393898014c8694599768aaa921

Commit: 8c7096f7a62b73393898014c8694599768aaa921

Tree: d3766572d51e4111ae52ce2dfd3b95b63917aef6

Author: Anthony Eid

Committer: GitHub

## Message

```
Rename `model` based variable names to `entity`  (#24198)

## Context
While looking through the client crate, I noticed that some of the old
functions and variables were still using gpui::model name that was
deprecated during the gpui3 transition. This PR renames those instances
of model to entity to be more inline with gpui3.

In addition, I also renamed `model` to `entity` in cases found by the
below search terms given by @someone13574

- model = cx.
- model: Entity
- model: &Entity
- OpenedModelHandle
- model.update
- model.upgrade
- model = .*\.root (regex)
- parent_model
- model = cx.new
- cx.spawn(move |model

Release Notes:

- N/A
```

## Parents

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

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