# Rework editors to register and query buffers on scroll \(\#40388\) · gitcafe/zed

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

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

Visibility: public

Requested revision: de8dd9bea5b57678e5cb6791adc054dfdc92ad7e

Requested commit: de8dd9bea5b57678e5cb6791adc054dfdc92ad7e

Commit: de8dd9bea5b57678e5cb6791adc054dfdc92ad7e

Tree: 8ac2ed9f70cb6579b5f35f907f3977a8a8230f6c

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Rework editors to register and query buffers on scroll (#40388)

Preparation to https://github.com/zed-industries/zed/pull/40183
Moves https://github.com/zed-industries/zed/pull/22958 further: now,
instead of selection, scrolling the buffer into view is enough to get
registered and, later, be queried for its LSP data such as inlay hints,
diagnostics and document colors.

This effectively undoes https://github.com/zed-industries/zed/pull/28855
as now we try to register whatever's visible more aggressively, instead
of implicitly via inlay hints.

Release Notes:

- Reworked editors to register and query buffers on scroll
```

## Parents

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

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