# Avoid an unwrap when loading languages \(\#8562\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9e4b3ce94c1db6ea3d2967b3f0e2a667a4939c3d

Requested commit: 9e4b3ce94c1db6ea3d2967b3f0e2a667a4939c3d

Commit: 9e4b3ce94c1db6ea3d2967b3f0e2a667a4939c3d

Tree: dace3e960cc4edc16d824b6dd7c06f8af663fad5

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Avoid an unwrap when loading languages (#8562)

We couldn't reproduce the panic, but I believe it was possible when
uninstalling an extension while one if its grammars was still loading.

Release Notes:
- Fixed a crash that could happen when uninstalling a language extension
while its grammar was loading.

---------

Co-authored-by: Conrad <conrad@zed.dev>
```

## Parents

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

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