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.
This commit is contained in:
Riley Bruins
2025-06-16 13:05:00 -07:00
committed by GitHub
parent 492ea28612
commit 35756022cb
2 changed files with 18 additions and 3 deletions

View File

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