# lsp: Handle dynamic registration of textDocument/documentLink \(\#57749\) · gitcafe/zed

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

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

Visibility: public

Requested revision: efacf3029415970bfabde0c093097562e07755a8

Requested commit: efacf3029415970bfabde0c093097562e07755a8

Commit: efacf3029415970bfabde0c093097562e07755a8

Tree: bd3ce7d23b1204eaa6991223c273faf95a57428f

Author: Shuhei Kadowaki

Committer: GitHub

## Message

```
lsp: Handle dynamic registration of textDocument/documentLink (#57749)

`register_server_capabilities` / `unregister_server_capabilities` had no
arm for `textDocument/documentLink`, so when a server saw our
`documentLink.dynamicRegistration` capability and chose to register the
provider dynamically, the registration silently fell into the `unhandled
capability registration` warning. `document_link_provider` stayed
`None`, `GetDocumentLinks::check_capabilities` returned false, and no
`textDocument/documentLink` request was ever sent.

Follow-up to https://github.com/zed-industries/zed/pull/56011

Release Notes:

- N/A

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
```

## Parents

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

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