From e1bba896e36bf96a77e46671f7598a285c5aff52 Mon Sep 17 00:00:00 2001 From: Hakan Ozkok Date: Wed, 19 Apr 2023 09:22:04 +0100 Subject: [PATCH] fix(dap): cleanup exit handler (#234) Fixed an issue where a zombie handler raising errors on multiple debug runs in same neovim session. --- lua/neotest/client/strategies/dap/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/neotest/client/strategies/dap/init.lua b/lua/neotest/client/strategies/dap/init.lua index 9c1acbe6..09d95001 100644 --- a/lua/neotest/client/strategies/dap/init.lua +++ b/lua/neotest/client/strategies/dap/init.lua @@ -53,6 +53,7 @@ return function(spec) end, after = function() dap.listeners.after.event_output[handler_id] = nil + dap.listeners.after.event_exited[handler_id] = nil if adapter_after then adapter_after() end