From e9b85acfbb8d3b1dd6f92deb187800be757c6c68 Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Sat, 22 Apr 2023 02:37:38 -0500 Subject: [PATCH] feat(lsp): enable workspace/didChangeWatchedFiles by default (#23190) --- runtime/doc/news.txt | 3 +++ runtime/lua/vim/lsp/protocol.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index bbf63a5ee0..3f07dd2e66 100644 --- 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 index 2cb8fc7955..a7919f12f5 100644 --- 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, }, },