# Query less inlay hints \(\#2842\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 64c2043913d7eb191cb4f5e647e98337527f8e34

Requested commit: 64c2043913d7eb191cb4f5e647e98337527f8e34

Commit: 64c2043913d7eb191cb4f5e647e98337527f8e34

Tree: 5105fbb9cc16ff6992c24041ac46a062a221103c

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Query less inlay hints (#2842)

Part of
https://linear.app/zed-industries/issue/Z-2750/investigate-performance-of-collaborating-on-large-files-with-inlay

Instead of querying the entire file for hints, query visible editor(s)
range + the areas above and below, of the same height.
Non-invalidating future queries (e.g. scrolling) query only missing
parts of the ranges.

Release Notes:

- Improved LSP resource usage by querying less hints for big files
```

## Parents

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

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

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