Skip to content

Commit

Permalink
Add check for completely empty message
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Feb 28, 2024
1 parent c13b1d7 commit 60f0458
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lspecho/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ local function lsp_progress(err, progress, ctx)
})
elseif value.kind == 'end' then
local cur = series[token]
local msg = value.message or (cur and cur.message)
msg = msg and msg .. ' - Done' or 'Done'
log({
client = client_name or (cur and cur.client),
title = value.title or (cur and cur.title),
message = (value.message or (cur and cur.message)) .. ' - Done',
message = msg,
})
series[token] = nil
clear()
Expand Down

0 comments on commit 60f0458

Please sign in to comment.