fix(lsp): correct iteration through attached buffers (#36517)

This commit is contained in:
Maria Solano
2025-11-10 19:54:01 -08:00
committed by GitHub
parent 7fe02126f9
commit 2822c38f2e
3 changed files with 3 additions and 3 deletions

View File

@@ -822,7 +822,7 @@ function M._refresh(err, _, ctx)
return vim.NIL
end
for bufnr in ipairs(vim.lsp.get_client_by_id(ctx.client_id).attached_buffers or {}) do
for bufnr in pairs(vim.lsp.get_client_by_id(ctx.client_id).attached_buffers or {}) do
local highlighter = STHighlighter.active[bufnr]
if highlighter and highlighter.client_state[ctx.client_id] then
highlighter:mark_dirty(ctx.client_id)