aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/_watchfiles.lua
diff options
context:
space:
mode:
authorRaphael <glephunter@gmail.com>2023-08-03 19:03:48 +0800
committerGitHub <noreply@github.com>2023-08-03 04:03:48 -0700
commitf1772272b4fda43c093fc495f54b5e7c11968d62 (patch)
treeaca0ec70aec49ea58b651759c5821c5a0aacd07a /runtime/lua/vim/lsp/_watchfiles.lua
parent214b125132778c5d51d4d7e673d31a9be835e150 (diff)
downloadrneovim-f1772272b4fda43c093fc495f54b5e7c11968d62.tar.gz
rneovim-f1772272b4fda43c093fc495f54b5e7c11968d62.tar.bz2
rneovim-f1772272b4fda43c093fc495f54b5e7c11968d62.zip
refactor(lsp): use protocol.Methods instead of strings #24537
Diffstat (limited to 'runtime/lua/vim/lsp/_watchfiles.lua')
-rw-r--r--runtime/lua/vim/lsp/_watchfiles.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/_watchfiles.lua b/runtime/lua/vim/lsp/_watchfiles.lua
index b66f2f6f32..c271dc6e14 100644
--- a/runtime/lua/vim/lsp/_watchfiles.lua
+++ b/runtime/lua/vim/lsp/_watchfiles.lua
@@ -1,6 +1,7 @@
local bit = require('bit')
local watch = require('vim._watch')
local protocol = require('vim.lsp.protocol')
+local ms = protocol.Methods
local lpeg = vim.lpeg
local M = {}
@@ -190,7 +191,7 @@ function M.register(reg, ctx)
if not queue_timers[client_id] then
queue_timers[client_id] = vim.defer_fn(function()
- client.notify('workspace/didChangeWatchedFiles', {
+ client.notify(ms.workspace_didChangeWatchedFiles, {
changes = change_queues[client_id],
})
queue_timers[client_id] = nil