# lsp: Register buffers with language server when querying inlay hints \(\#28855\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 25956c49c14d8ca3666d48ebeef2c1c4f2e66ce3

Requested commit: 25956c49c14d8ca3666d48ebeef2c1c4f2e66ce3

Commit: 25956c49c14d8ca3666d48ebeef2c1c4f2e66ce3

Tree: 8b272dd8ea4d4b2d064db96eb896005207394cf2

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
lsp: Register buffers with language server when querying inlay hints (#28855)

We register buffers with language servers lazily when in multi-buffer
(when the excerpt is interacted with); this does not account for inlay
hints, of which a mere presence on a screen is enough to query a
language server with a path it does not recognize. This posed a problem
with typescript-language-server, which sent a notification to the user
whenever they had a multibuffer open with inlay hints enabled.

Closes #ISSUE

Release Notes:

- Fixed annoying pop-up with typescript-language-server that happened in
multi-buffers with inlay hints enabled.
```

## Parents

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

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