Skip to content

Commit c75b6da

Browse files
committed
fix(exceptions): apply filters to all sessions that match the adapter
1 parent 2a3f4e3 commit c75b6da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/dap-view/exceptions/init.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ M.update_exception_breakpoints_filters = function()
1919
end)
2020
:totable()
2121

22-
dap.set_exception_breakpoints(filters)
22+
for _, session in pairs(dap.sessions()) do
23+
if session.config.type == state.current_adapter then
24+
session:set_exception_breakpoints(filters)
25+
end
26+
end
2327
end
2428

2529
return M

0 commit comments

Comments
 (0)