Skip to content

Commit

Permalink
fix(quickfix): always set QF list after a test run (#205)
Browse files Browse the repository at this point in the history
otherwise we wouldn't remove obsolete errors after fixing a test.
  • Loading branch information
emmanueltouzery authored Feb 13, 2023
1 parent 568feb5 commit 8807379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neotest/consumers/quickfix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ local init = function()
return a.filename < b.filename
end)

async.fn.setqflist(qf_results)
if #qf_results > 0 then
async.fn.setqflist(qf_results)
if config.quickfix.open then
if type(config.quickfix.open) == "function" then
config.quickfix.open()
Expand Down

0 comments on commit 8807379

Please sign in to comment.