diff options
author | quantonganh | 2023-08-14 13:46:06 +0000 |
---|---|---|
committer | GitHub | 2023-08-14 13:46:06 +0000 |
commit | 085706e0cdd569f36f36875fb6698a197c46ed11 (patch) | |
tree | 7b10b7cc0f8951275fa82a9dba73d2e06a426da6 /helix-term/src/commands | |
parent | d6bb1092c7f046d4ac7eb3bad6a7e4b9b9d94ca7 (diff) |
Include completions for git-ignored files in debugger prompt (#7936)
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r-- | helix-term/src/commands/dap.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index e26dc08d..cc013d1e 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -339,8 +339,12 @@ fn debug_parameter_prompt( .to_owned(); let completer = match field_type { - "filename" => ui::completers::filename, - "directory" => ui::completers::directory, + "filename" => |editor: &Editor, input: &str| { + ui::completers::filename_with_git_ignore(editor, input, false) + }, + "directory" => |editor: &Editor, input: &str| { + ui::completers::directory_with_git_ignore(editor, input, false) + }, _ => ui::completers::none, }; |