# Rework inlay hint cache tests \(\#23156\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 22f5fd53ca379f358e63fb986788ae35e312b90b

Requested commit: 22f5fd53ca379f358e63fb986788ae35e312b90b

Commit: 22f5fd53ca379f358e63fb986788ae35e312b90b

Tree: 0b72025f45c7609d57708164046a84bea19dc62b

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Rework inlay hint cache tests (#23156)

Closes https://github.com/zed-industries/zed/issues/7928

* uncomments and fixes all inlay hint cache tests
* fixes a bug, where invalidated range did not store the new queried
ranges in the cache: this resulted in extra requests in editor that do
not fit into the screen
* comments a peculiarity with the `RefreshInlayHints` event: all editors
react to that when a new language server is inserted, even though
certain editors are not related to the new language server
* fixes handling of inlay hints for the same position: now the same
order is kept, as in the language server's response
(https://github.com/zed-industries/zed/issues/7928)
* queries for hints when on excerpt(s) expansion

Release Notes:

- Fixed inlay hints handling for the same position
```

## Parents

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

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