Skip to content

Commit

Permalink
fix(dap): handle no exited event
Browse files Browse the repository at this point in the history
See #200
  • Loading branch information
rcarriga committed Jul 15, 2023
1 parent e46eae5 commit 80366bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/neotest/client/strategies/dap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ return function(spec)
return adapter_before and adapter_before() or config
end,
after = function()
local received_exit = result_code ~= nil
if not received_exit then
result_code = 0
pcall(finish_future.set)
end
dap.listeners.after.event_output[handler_id] = nil
dap.listeners.after.event_exited[handler_id] = nil
if adapter_after then
Expand Down

0 comments on commit 80366bb

Please sign in to comment.