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
This commit is contained in:
Volodymyr Chernetskyi
2026-09-09 14:45:10 +02:00
committed by GitHub
parent 0a844adc13
commit 8e0045f43a
5 changed files with 57 additions and 1 deletions

View File

@@ -639,6 +639,9 @@ function protocol.make_client_capabilities()
diagnostics = {
refreshSupport = true,
},
foldingRange = {
refreshSupport = true,
},
fileOperations = {
dynamicRegistration = false,
didCreate = false,