aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorJon Huhn <nojnhuh@users.noreply.github.com>2023-02-25 03:07:18 -0600
committerGitHub <noreply@github.com>2023-02-25 10:07:18 +0100
commit5732aa706c639b3d775573d91d1139f24624629c (patch)
treeff6e67f1712d1a502b6437aae17b25ef822b63f2 /runtime/lua/vim/lsp/protocol.lua
parenta601d031127689a7d60cc92f4ec89907794ed020 (diff)
downloadrneovim-5732aa706c639b3d775573d91d1139f24624629c.tar.gz
rneovim-5732aa706c639b3d775573d91d1139f24624629c.tar.bz2
rneovim-5732aa706c639b3d775573d91d1139f24624629c.zip
feat(lsp): implement workspace/didChangeWatchedFiles (#21293)
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index 12345b6c8c..df1ab26667 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -28,6 +28,10 @@ end
---@class lsp.MessageActionItem
---@field title string
+---@class lsp.FileEvent
+---@field uri string
+---@field type lsp.FileChangeType
+
local constants = {
DiagnosticSeverity = {
-- Reports an error.
@@ -60,6 +64,7 @@ local constants = {
},
-- The file event type.
+ ---@enum lsp.FileChangeType
FileChangeType = {
-- The file got created.
Created = 1,
@@ -841,6 +846,10 @@ function protocol.make_client_capabilities()
semanticTokens = {
refreshSupport = true,
},
+ didChangeWatchedFiles = {
+ dynamicRegistration = true,
+ relativePatternSupport = true,
+ },
},
experimental = nil,
window = {