# Use \`Project\`'s EntityId as the "window id" for Alacritty PTYs \(\#35876\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 51298b691229b71544eef117739922ab5a556ae7

Requested commit: 51298b691229b71544eef117739922ab5a556ae7

Commit: 51298b691229b71544eef117739922ab5a556ae7

Tree: fa782b2806414d688c71146346559e152cfe253d

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Use `Project`'s EntityId as the "window id" for Alacritty PTYs (#35876)

It's unfortunate to need to have access to a GPUI window in order to
create a terminal, because it forces to take a `Window` parameter in
entities that otherwise would have been pure models.

This pull request changes it so that we pass the `Project`'s entity id,
which is equally stable as the window id.

Release Notes:

- N/A

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
```

## Parents

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

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