mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
feat(lsp): implement workspace/didChangeWatchedFiles (#21293)
This commit is contained in:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user