# Fix anchor-related panic when gathering applicable inlay chunks \(\#41002\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4f0a44896a1aa2a66163d467d627ce14194f7122

Requested commit: 4f0a44896a1aa2a66163d467d627ce14194f7122

Commit: 4f0a44896a1aa2a66163d467d627ce14194f7122

Tree: ee4f9d15a55a862d4dd0ee26db9b193dcf7227f2

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix anchor-related panic when gathering applicable inlay chunks (#41002)

Before, inlay chunks were retrieved from the cache based on actualized
anchor ranges, but using an old buffer snapshot. Now, update all chunks
and snapshot to the actual before returning the applicable ones.

Follow-up of https://github.com/zed-industries/zed/pull/40183

Release Notes:

- N/A
```

## Parents

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

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