project: Fix dynamic registration for textDocument/documentColor (#36807)
From:
d90a87f955/protocol/src/common/protocol.colorProvider.ts (L50)
Release Notes:
- N/A
This commit is contained in:
parent
61bc1cc441
commit
60ea4754b2
1 changed files with 2 additions and 2 deletions
|
@ -11913,7 +11913,7 @@ impl LspStore {
|
||||||
notify_server_capabilities_updated(&server, cx);
|
notify_server_capabilities_updated(&server, cx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"textDocument/colorProvider" => {
|
"textDocument/documentColor" => {
|
||||||
if let Some(caps) = reg
|
if let Some(caps) = reg
|
||||||
.register_options
|
.register_options
|
||||||
.map(serde_json::from_value)
|
.map(serde_json::from_value)
|
||||||
|
@ -12064,7 +12064,7 @@ impl LspStore {
|
||||||
});
|
});
|
||||||
notify_server_capabilities_updated(&server, cx);
|
notify_server_capabilities_updated(&server, cx);
|
||||||
}
|
}
|
||||||
"textDocument/colorProvider" => {
|
"textDocument/documentColor" => {
|
||||||
server.update_capabilities(|capabilities| {
|
server.update_capabilities(|capabilities| {
|
||||||
capabilities.color_provider = None;
|
capabilities.color_provider = None;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue