Skip to content

Commit a96e922

Browse files
committed
Add return type annotation for utils.pick_process
1 parent 5dd4d50 commit a96e922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/dap/utils.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ M._trim_procname = trim_procname
201201
---@field label? fun(proc: dap.utils.Proc): string
202202
---@field prompt? string
203203

204-
--- Show a prompt to select a process pid
204+
--- Show a prompt to select a process pid and returns the pid on selection
205205
--- Requires `ps ah -u $USER` on Linux/Mac and `tasklist /nh /fo csv` on windows.
206206
--
207207
--- Takes an optional `opts` table with the following options:
@@ -233,6 +233,7 @@ M._trim_procname = trim_procname
233233
--- </pre>
234234
---
235235
---@param opts? dap.utils.pick_process.Opts
236+
---@return integer|dap.Abort
236237
function M.pick_process(opts)
237238
opts = opts or {}
238239
local cols = math.max(14, math.floor(vim.o.columns * 0.7))

0 commit comments

Comments
 (0)