# Fix inlay hints using stale editor data \(\#7376\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 45429a452883da56b87e8238b20bd347f9f0d7ba

Requested commit: 45429a452883da56b87e8238b20bd347f9f0d7ba

Commit: 45429a452883da56b87e8238b20bd347f9f0d7ba

Tree: 93d8682df4122468c4d4441db204efd4de40af93

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix inlay hints using stale editor data (#7376)

Refactor the hint query code to pass along an actual `cx` instead of its
potentially stale, cloned version.

Release Notes:

- Fixed occasional duplicate hints inserted and offset-related panics
when concurrently editing the buffer and querying multiple its ranges
for hints
```

## Parents

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

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