# Show status of LSP actions \(\#9818\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4944dc9d78614f3ddcddac232b61cf2f1f03a65e

Requested commit: 4944dc9d78614f3ddcddac232b61cf2f1f03a65e

Commit: 4944dc9d78614f3ddcddac232b61cf2f1f03a65e

Tree: 01e8b1cf9cf9b5c88f4bef5680d3f0f0bafb3850

Author: Daniel Zhu

Committer: GitHub

## Message

```
Show status of LSP actions (#9818)

Fixes #4380

Parts im still unsure about:
- [x] where exactly I should call `on_lsp_start`/`on_lsp_end`
- [x] how to handle things better than `let is_references =
TypeId::of::<R>() == TypeId::of::<GetReferences>();`, which feels very
janky
- [x] I want to have the message be something like `"Finding references
to [...]"` instead of just `textDocument/references`, but I'm not sure
how to retrieve the name of the symbol that's being queried
- [ ] I think the bulk of the runtime is occupied by `let result =
language_server.request::<R::LspRequest>(lsp_params).await;`, but since
`ModelContext` isn't passed into it, I'm not sure how to update progress
from within that function
- [x] A good way to disambiguate between multiple calls to the same lsp
function; im currently using the function name itself as the unique
identifier for that request, which could create issues if multiple
`textDocument/references` requests are sent in parallel

Any help with these would be deeply appreciated!

Release Notes:

- Adds a status indicator for LSP actions

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
```

## Parents

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

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