Skip to content

Commit 57015cb

Browse files
committed
Add type annotation for on_output in dap.defaults
1 parent 567da83 commit 57015cb

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lua/dap.lua

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,20 @@ end
146146
M.defaults = setmetatable(
147147
{
148148
fallback = {
149-
exception_breakpoints = 'default';
149+
exception_breakpoints = 'default',
150150
---@type "statement"|"line"|"instruction"
151-
stepping_granularity = 'statement';
151+
stepping_granularity = 'statement',
152152

153153
---@type string|fun(config: dap.Configuration):(integer, integer?)
154-
terminal_win_cmd = 'belowright new';
155-
focus_terminal = false;
156-
auto_continue_if_many_stopped = true;
154+
terminal_win_cmd = 'belowright new',
155+
focus_terminal = false,
156+
auto_continue_if_many_stopped = true,
157157

158158
---@type string|nil
159-
switchbuf = nil
159+
switchbuf = nil,
160+
161+
---@type nil|fun(session: dap.Session, output: dap.OutputEvent)
162+
on_output = nil,
160163
},
161164
},
162165
{

0 commit comments

Comments
 (0)