fix(lsp): advertise supported fold kinds (#34461)

This commit also makes it so that folds which have an unsupported fold
kind have their `kind` ignored.

(cherry picked from commit 35756022cb)
This commit is contained in:
Riley Bruins
2025-06-16 13:05:00 -07:00
committed by github-actions[bot]
parent 3d5be364bc
commit 1077374380
2 changed files with 18 additions and 3 deletions

View File

@@ -440,6 +440,9 @@ function protocol.make_client_capabilities()
foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
foldingRangeKind = {
valueSet = { 'comment', 'imports', 'region' },
},
foldingRange = {
collapsedText = true,
},