# Fix deadlock while initializing JSON language server · gitcafe/zed

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

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

Visibility: public

Requested revision: 757f05042d2b1339703664c6fe4343daf4fd333b

Requested commit: 757f05042d2b1339703664c6fe4343daf4fd333b

Commit: 757f05042d2b1339703664c6fe4343daf4fd333b

Tree: 0d74c15f2a615c71d76cd23a8f55054bde1cd7aa

Author: Julia

Committer: Julia

## Message

```
Fix deadlock while initializing JSON language server

As it turns out both parking-lot and std's `RwLock` disallows taking
multiple read locks on the same thread

Co-Authored-By: Max Brunsfeld <max@zed.dev>

```

## Parents

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

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