Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/dap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ Lua module: dap.utils

pick_process({opts}) *dap.utils.pick_process*
Show a prompt to select a process pid
Requires `ps ah -u $USER` on Linux/Mac and `tasklist /nh /fo csv` on windows.
Requires `ps ah -U $USER` on Linux/Mac and `tasklist /nh /fo csv` on windows.


Parameters:
Expand Down
2 changes: 1 addition & 1 deletion lua/dap/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end
function M.get_processes()
local is_windows = vim.fn.has('win32') == 1
local separator = is_windows and ',' or ' \\+'
local command = is_windows and {'tasklist', '/nh', '/fo', 'csv'} or {'ps', 'ah', '-u', os.getenv("USER")}
local command = is_windows and {'tasklist', '/nh', '/fo', 'csv'} or {'ps', 'ah', '-U', os.getenv("USER")}
-- output format for `tasklist /nh /fo` csv
-- '"smss.exe","600","Services","0","1,036 K"'
-- output format for `ps ah`
Expand Down