# lsp: Handle dynamic registration of workspace diagnostic capabilities \(\#40095\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ff50f489805e26cbe178177fcf87475fc3ced782

Requested commit: ff50f489805e26cbe178177fcf87475fc3ced782

Commit: ff50f489805e26cbe178177fcf87475fc3ced782

Tree: cb4f7d81dde6be1894f23910e5c757bc998e93aa

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
lsp: Handle dynamic registration of workspace diagnostic capabilities (#40095)

Workspace diagnostics in Zed have a dedicated background task that
handles querying the language server based on workspace diagnostics
refresh requests issued by both Zed and language server itself.
We only spawned that task when language server declared support for
workspace diagnostics on boot-up. This made workspace diagnostics
unavailable
when a language server (say, Ty) declared support via a capability
registration.
Originally reported in
https://github.com/zed-industries/zed/issues/39144#issuecomment-3370320004

Release Notes:

- python: Fixed workspace diagnostics not working with Ty.
```

## Parents

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

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