Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsp: Handle unregistration "textDocument/rename" from a server #19427

Merged

Conversation

vitallium
Copy link
Contributor

@vitallium vitallium commented Oct 18, 2024

Hi. While working on #19230 I noticed that some servers send a request to unregistered the textDocument/rename capability. I thought it would be good to handle that message in Zed:

[2024-10-18T21:25:07+02:00 WARN  project::lsp_store] unhandled capability unregistration: Unregistration { id: "biome_rename", method: "textDocument/rename" }

So this pull request implements that. Thanks.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 18, 2024
@vitallium vitallium changed the title lsp: handle unregistration "textDocument/rename" from a server lsp: Handle unregistration "textDocument/rename" from a server Oct 18, 2024
@vitallium vitallium force-pushed the vs/lsp-unregister-rename-provider branch from cb402a3 to 649557c Compare October 18, 2024 18:47
@osiewicz osiewicz merged commit 3e0c5c1 into zed-industries:main Oct 18, 2024
14 checks passed
@osiewicz
Copy link
Contributor

Thanks!
Btw. which language servers needed that? Asking out of pure curiosity.

@vitallium
Copy link
Contributor Author

Thanks! Btw. which language servers needed that? Asking out of pure curiosity.

This is Biome LSP - https://biomejs.dev/guides/editors/create-a-extension/#_top

@vitallium vitallium deleted the vs/lsp-unregister-rename-provider branch October 19, 2024 05:02
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…ndustries#19427)

Hi. While working on zed-industries#19230 I
noticed that some servers send a request to unregistered the
`textDocument/rename` capability. I thought it would be good to handle
that message in Zed:

```plaintext
[2024-10-18T21:25:07+02:00 WARN  project::lsp_store] unhandled capability unregistration: Unregistration { id: "biome_rename", method: "textDocument/rename" }
```

So this pull request implements that. Thanks.

Release Notes:

- N/A
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