# Do not allow concurrent FindAllReferences requests for the same multibuffer anchors \(\#9242\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c09fe1ce8a199ddb0f84be55af61a472ad0e7c0d

Requested commit: c09fe1ce8a199ddb0f84be55af61a472ad0e7c0d

Commit: c09fe1ce8a199ddb0f84be55af61a472ad0e7c0d

Tree: 6c392081beed6d96856ac8d80346aed866b353b9

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Do not allow concurrent FindAllReferences requests for the same multibuffer anchors (#9242)

FindAllReferences LSP requests might take a long time to complete, and
currently Zed allows multiple requests spawned concurrently for the same
Anchor in the multi buffer. That results in multiple search results'
multi buffers appearing, sometimes at once, which is not what we want.

Part of https://github.com/zed-industries/zed/issues/5351 that helps to
reduce the amount of search results after clicks that did not resolve
instantly.


Release Notes:

- Improved FindAllReferences action by not allowing concurrent requests
for the same multi buffer source
```

## Parents

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

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