Skip to content

lsp: Handle dynamic registration of textDocument/documentLink#57749

Merged
SomeoneToIgnore merged 1 commit into
zed-industries:mainfrom
aviatesk:fix-56011
May 26, 2026
Merged

lsp: Handle dynamic registration of textDocument/documentLink#57749
SomeoneToIgnore merged 1 commit into
zed-industries:mainfrom
aviatesk:fix-56011

Conversation

@aviatesk

@aviatesk aviatesk commented May 26, 2026

Copy link
Copy Markdown
Contributor

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 #56011

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 26, 2026

@SomeoneToIgnore SomeoneToIgnore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the catch!

@SomeoneToIgnore SomeoneToIgnore enabled auto-merge May 26, 2026 17:53
@SomeoneToIgnore SomeoneToIgnore disabled auto-merge May 26, 2026 17:54
`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.

Fixes up zed-industries#56011.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@SomeoneToIgnore SomeoneToIgnore self-assigned this May 26, 2026
@SomeoneToIgnore SomeoneToIgnore enabled auto-merge May 26, 2026 18:03
@SomeoneToIgnore SomeoneToIgnore added this pull request to the merge queue May 26, 2026
Merged via the queue into zed-industries:main with commit efacf30 May 26, 2026
32 checks passed
@aviatesk aviatesk deleted the fix-56011 branch May 26, 2026 18:14
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
…dustries#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 zed-industries#56011

Release Notes:

- N/A

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants