Fix slash command argument completion bugs (#16233)
Release Notes: - N/A --------- Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
6365000b68
commit
8df21f7bcd
8 changed files with 67 additions and 27 deletions
|
@ -76,6 +76,7 @@ impl SlashCommand for TabSlashCommand {
|
|||
Some(ArgumentCompletion {
|
||||
label: path_string.clone().into(),
|
||||
new_text: path_string,
|
||||
replace_previous_arguments: false,
|
||||
run_command,
|
||||
})
|
||||
});
|
||||
|
@ -83,6 +84,7 @@ impl SlashCommand for TabSlashCommand {
|
|||
Ok(Some(ArgumentCompletion {
|
||||
label: ALL_TABS_COMPLETION_ITEM.into(),
|
||||
new_text: ALL_TABS_COMPLETION_ITEM.to_owned(),
|
||||
replace_previous_arguments: false,
|
||||
run_command: true,
|
||||
})
|
||||
.into_iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue