vim: Fix tab title when using !!
and disable rerun button for terminal tasks (#26122)
These changes tackle two issues with running terminal commands via vim mode: - When using `!!` the tab's title was set to `!!` instead of the previous command that was run and these changes fix that in order to always display the previous command in the tab's title when re-running the command with `!!` - For a terminal command, pressing the rerun button would actually bring up the task palette, so this has been updated in order to disable the rerun button when the terminal tab was spawned via a vim command Closes #25800 Release Notes: - Fixed the terminal tab title when using `!!` to rerun the last command - Improved the terminal tab for when command is run via vim mode, in order to disable the rerun button, seeing as Zed does not support it
This commit is contained in:
parent
82d85fd2ed
commit
e600e71c1c
6 changed files with 44 additions and 29 deletions
|
@ -58,6 +58,8 @@ pub struct SpawnInTerminal {
|
|||
pub show_summary: bool,
|
||||
/// Whether to show the command line in the task output.
|
||||
pub show_command: bool,
|
||||
/// Whether to show the rerun button in the terminal tab.
|
||||
pub show_rerun: bool,
|
||||
}
|
||||
|
||||
/// A final form of the [`TaskTemplate`], that got resolved with a particular [`TaskContext`] and now is ready to spawn the actual task.
|
||||
|
|
|
@ -255,6 +255,7 @@ impl TaskTemplate {
|
|||
shell: self.shell.clone(),
|
||||
show_summary: self.show_summary,
|
||||
show_command: self.show_command,
|
||||
show_rerun: true,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue