fix(lsp): deprecate vim.lsp.protocol.Methods (#35998)

This commit is contained in:
Maria Solano
2025-10-04 21:09:13 -07:00
committed by GitHub
parent 2f35221774
commit b938638d2d
23 changed files with 179 additions and 200 deletions

View File

@@ -126,7 +126,7 @@ local function check_watcher()
'dynamicRegistration'
)
local has_dynamic_capability =
client.dynamic_capabilities:get(vim.lsp.protocol.Methods.workspace_didChangeWatchedFiles)
client.dynamic_capabilities:get('workspace/didChangeWatchedFiles')
return has_capability == nil
or has_dynamic_capability == nil
or client.workspace_folders == nil