assistant: Slash command tweaks (#16140)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-08-13 02:34:03 +02:00 committed by GitHub
parent dbcd06642c
commit 0bc9fc9487
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View file

@ -15,17 +15,17 @@ use crate::DEFAULT_CONTEXT_LINES;
use super::create_label_for_command;
pub(crate) struct TermSlashCommand;
pub(crate) struct TerminalSlashCommand;
const LINE_COUNT_ARG: &str = "--line-count";
impl SlashCommand for TermSlashCommand {
impl SlashCommand for TerminalSlashCommand {
fn name(&self) -> String {
"term".into()
"terminal".into()
}
fn label(&self, cx: &AppContext) -> CodeLabel {
create_label_for_command("term", &[LINE_COUNT_ARG], cx)
create_label_for_command("terminal", &[LINE_COUNT_ARG], cx)
}
fn description(&self) -> String {