Skip to content

Commit

Permalink
fix(lsp): cleanup progress messages for the correct client (neovim#16110
Browse files Browse the repository at this point in the history
)
  • Loading branch information
folke authored Oct 21, 2021
1 parent 80456cf commit cb15055
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/lua/vim/lsp/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ function M.get_progress_messages()
table.remove(client.messages, item.idx)
end

for _, item in ipairs(progress_remove) do
client.messages.progress[item.token] = nil
end
end

for _, item in ipairs(progress_remove) do
item.client.messages.progress[item.token] = nil
end

return new_messages
Expand Down

0 comments on commit cb15055

Please sign in to comment.