Skip to content

Commit 1dd02e8

Browse files
committed
Document continue opts
1 parent da439b2 commit 1dd02e8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

doc/dap.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ API *dap-api*
608608
Lua module: dap
609609

610610

611-
continue() *dap.continue()*
611+
continue({opts}) *dap.continue()*
612612
`continue()` resumes the execution of an application [count] times if a
613613
debug session is active and a thread was stopped. Threads are usually
614614
stopped when a breakpoint is hit or an exception occurred.
@@ -623,6 +623,10 @@ continue() *dap.continue()*
623623
`continue()` is the main entry-point for users to start debugging an
624624
application.
625625

626+
Parameters:
627+
{opts} Optional table with:
628+
- `new: boolean` force starting an additional debug session
629+
626630

627631
run({config}, {opts}) *dap.run()*
628632
Looks up a debug adapter entry for the given configuration and runs it.
@@ -640,7 +644,7 @@ run({config}, {opts}) *dap.run()*
640644
Parameters:
641645
{config} |dap-configuration| to run
642646
{opts} Optional table with:
643-
- `new: boolean` to force running an additional debug session
647+
- `new: boolean` force starting an additional debug session
644648

645649

646650
run_last() *dap.run_last()*

lua/dap.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ function M.run_to_cursor()
860860
end
861861

862862

863-
---@param opts? table<string, any>
863+
---@param opts? {new?: boolean}
864864
function M.continue(opts)
865865
if not session then
866866
session = first_stopped_session()

0 commit comments

Comments
 (0)