diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-09-09 14:45:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 08:45:10 -0400 |
| commit | 8e0045f43ade397bbcf62c0d33aaf45e72e63610 (patch) | |
| tree | ce04b1eb98c50a850fab82898b295d79c121faa0 /runtime/lua/vim/lsp/protocol.lua | |
| parent | 0a844adc133f732b236b1669c705d9aac888a5a0 (diff) | |
| download | rneovim-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.lua | 3 |
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, |