aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorVolodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com>2026-09-09 14:45:10 +0200
committerGitHub <noreply@github.com>2026-09-09 08:45:10 -0400
commit8e0045f43ade397bbcf62c0d33aaf45e72e63610 (patch)
treece04b1eb98c50a850fab82898b295d79c121faa0 /runtime/lua/vim/lsp/protocol.lua
parent0a844adc133f732b236b1669c705d9aac888a5a0 (diff)
downloadrneovim-8e0045f43ade397bbcf62c0d33aaf45e72e63610.tar.gz
rneovim-8e0045f43ade397bbcf62c0d33aaf45e72e63610.tar.bz2
rneovim-8e0045f43ade397bbcf62c0d33aaf45e72e63610.zip
feat(lsp): support `workspace/foldingRange/refresh` #41780
Problem: Servers cannot request refreshing stale LSP folding ranges after a project-wide change. Solution: Advertise `workspace.foldingRange.refreshSupport` and re-request folding ranges for active buffers when handling `workspace/foldingRange/refresh`. AI-assisted
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index 9df3327d59..fff076e307 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -639,6 +639,9 @@ function protocol.make_client_capabilities()
diagnostics = {
refreshSupport = true,
},
+ foldingRange = {
+ refreshSupport = true,
+ },
fileOperations = {
dynamicRegistration = false,
didCreate = false,