commit e9b85acfbb8d3b1dd6f92deb187800be757c6c68
parent 2d2ed4f6fdcb9c876a5635a02ccb48ff0cabddfa
Author: Jon Huhn <nojnhuh@users.noreply.github.com>
Date: Sat, 22 Apr 2023 02:37:38 -0500
feat(lsp): enable workspace/didChangeWatchedFiles by default (#23190)
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
@@ -52,6 +52,9 @@ The following changes to existing APIs or features add new behavior.
• vim.diagnostic.config() now accepts a function for the virtual_text.prefix
option, which allows for rendering e.g., diagnostic severities differently.
+• The `workspace/didChangeWatchedFiles` LSP client capability is now enabled
+ by default.
+
==============================================================================
REMOVED FEATURES *news-removed*
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
@@ -837,7 +837,7 @@ function protocol.make_client_capabilities()
refreshSupport = true,
},
didChangeWatchedFiles = {
- dynamicRegistration = false,
+ dynamicRegistration = true,
relativePatternSupport = true,
},
},