feat(lsp): support dynamic registration of completionProvider #41748

Problem:
dynamicRegistration is declared false, and completionProvider is read
from server_capabilities only.

Solution:
Declare it, and prefer registerOptions per field.
This commit is contained in:
glepnir
2026-09-07 21:53:35 +08:00
committed by GitHub
parent fdf071959e
commit 937f835a3e
4 changed files with 61 additions and 12 deletions

View File

@@ -481,7 +481,7 @@ function protocol.make_client_capabilities()
rangesSupport = true,
},
completion = {
dynamicRegistration = false,
dynamicRegistration = true,
completionItem = {
snippetSupport = true,
commitCharactersSupport = true,