# gpui: Add Global marker trait \(\#7095\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e6ebe7974deb6bb6cc0e2595c8ec31f0c71084b7

Requested commit: e6ebe7974deb6bb6cc0e2595c8ec31f0c71084b7

Commit: e6ebe7974deb6bb6cc0e2595c8ec31f0c71084b7

Tree: d13cf1e7dd31526471869062d2ad043c8aa11fc8

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
gpui: Add Global marker trait (#7095)

This should prevent a class of bugs where one queries the wrong type of
global, which results in oddities at runtime.

Release Notes:

- N/A

---------

Co-authored-by: Marshall <marshall@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
```

## Parents

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

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