fix(lsp): avoid re-enabling document_color on registerCapability (#35774)

Problem: The registerCapability handler re-enables document_color,
making it impossible to disable it in LspAttach.

Solution: Enable it once on initialization and avoid re-enabling
on registerCapability.
This commit is contained in:
skewb1k
2025-09-16 03:50:53 +03:00
committed by GitHub
parent ddcfa8bb4a
commit fde0b487fb
2 changed files with 4 additions and 1 deletions

View File

@@ -784,7 +784,6 @@ function lsp._set_defaults(client, bufnr)
if client:supports_method(ms.textDocument_diagnostic) then
lsp.diagnostic._enable(bufnr)
end
lsp.document_color.enable(true, bufnr)
end
--- @deprecated