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:
Smit Barmase 2025-08-23 20:30:16 +05:30 committed by GitHub
parent 61bc1cc441
commit 60ea4754b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
});