mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(lsp): include client ID when receiving unknown fold kind (#34535)
(cherry picked from commit cd06e0c9d6
)
This commit is contained in:
committed by
github-actions[bot]
parent
9ffa94b07b
commit
ff8acfffd2
@ -46,7 +46,7 @@ local function renew(bufnr)
|
||||
---@type table<integer, string?>
|
||||
local row_text = {}
|
||||
|
||||
for _, ranges in pairs(bufstate.client_ranges) do
|
||||
for client_id, ranges in pairs(bufstate.client_ranges) do
|
||||
for _, range in ipairs(ranges) do
|
||||
local start_row = range.startLine
|
||||
local end_row = range.endLine
|
||||
@ -62,7 +62,7 @@ local function renew(bufnr)
|
||||
kinds[kind] = true
|
||||
row_kinds[start_row] = kinds
|
||||
else
|
||||
log.info(('Received unsupported fold kind: "%s"'):format(kind))
|
||||
log.info(('Unknown fold kind "%s" from client %d'):format(kind, client_id))
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user