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

@@ -2,7 +2,6 @@ local bit = require('bit')
local glob = vim.glob
local watch = vim._watch
local protocol = require('vim.lsp.protocol')
local ms = protocol.Methods
local lpeg = vim.lpeg
local M = {}
@@ -116,7 +115,7 @@ function M.register(reg, client_id)
local params = {
changes = change_queues[client_id],
}
client:notify(ms.workspace_didChangeWatchedFiles, params)
client:notify('workspace/didChangeWatchedFiles', params)
queue_timers[client_id] = nil
change_queues[client_id] = nil
change_cache[client_id] = nil