Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

project: Fix dynamic registration for textDocument/documentColor (#36807)

Smit Barmase60ea4754b29e
diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs
index fb1fae37363..d2958dce01c 100644
--- a/crates/project/src/lsp_store.rs
+++ b/crates/project/src/lsp_store.rs
@@ -11913,7 +11913,7 @@ impl LspStore {
notify_server_capabilities_updated(&server, cx);
}
}
- "textDocument/colorProvider" => {
+ "textDocument/documentColor" => {
if let Some(caps) = reg
.register_options
.map(serde_json::from_value)
@@ -12064,7 +12064,7 @@ impl LspStore {
});
notify_server_capabilities_updated(&server, cx);
}
- "textDocument/colorProvider" => {
+ "textDocument/documentColor" => {
server.update_capabilities(|capabilities| {
capabilities.color_provider = None;
});