refactor(lsp): tidy up logging

This commit is contained in:
Lewis Russell
2024-02-08 09:24:47 +00:00
committed by Lewis Russell
parent 2a7c4aca42
commit 1f9da3d083
8 changed files with 152 additions and 198 deletions

View File

@@ -262,9 +262,7 @@ end
function M.on_codelens(err, result, ctx, _)
if err then
active_refreshes[assert(ctx.bufnr)] = nil
if log.error() then
log.error('codelens', err)
end
log.error('codelens', err)
return
end