# Remove excessive hint update queries \(\#2667\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e017d62e922f7f97c740e89720690c32b3efe130

Requested commit: e017d62e922f7f97c740e89720690c32b3efe130

Commit: e017d62e922f7f97c740e89720690c32b3efe130

Tree: f8497c8947f5c68d05fdf4e08a8376468b3631e2

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Remove excessive hint update queries (#2667)

Closes
https://linear.app/zed-industries/issue/Z-2513/panic-in-refresh-inlay-hints

* Filter out queries for outdated buffers just before hint tasks spawn:
  multicaret edits might emit standalone events simultaneously
* Only spawn inlay update tasks for visible buffers with corresponding
  language
* Do not spawn tasks for local projects' buffers without LSP servers

Release Notes:

- N/A
```

## Parents

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

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

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