# lsp: Provide completion reason in the request \(\#12893\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0a13b9ee01ef34d1e06fb5f47c73aefd3c74707f

Requested commit: 0a13b9ee01ef34d1e06fb5f47c73aefd3c74707f

Commit: 0a13b9ee01ef34d1e06fb5f47c73aefd3c74707f

Tree: 1d70c68c4c6ff1fcc48f7798f7e8b4807c0f5a10

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
lsp: Provide completion reason in the request (#12893)

This should help LS make a better call about the completions it should
return back to the caller. For example, it speeds up import completions
for typescript.
Before: 


https://github.com/zed-industries/zed/assets/24362066/b38fd565-f9ff-4db7-a87f-c3b31a9fdc96

after: 


https://github.com/zed-industries/zed/assets/24362066/d4fbc9ae-9aab-4543-b9f6-16acf1619576


This should be merged after 06.12 Preview to give it some time on
Nightly.

Release Notes:

- N/A
```

## Parents

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

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