Extend task templates with shell
and hide
fields to use custom shells and custom close behavior (#15031)
This commit is contained in:
parent
4a43084cb7
commit
b2b9d4ccb6
15 changed files with 302 additions and 148 deletions
|
@ -1000,7 +1000,7 @@ mod tests {
|
|||
path::{Path, PathBuf},
|
||||
time::Duration,
|
||||
};
|
||||
use task::{RevealStrategy, SpawnInTerminal};
|
||||
use task::{HideStrategy, RevealStrategy, Shell, SpawnInTerminal};
|
||||
use theme::{ThemeRegistry, ThemeSettings};
|
||||
use workspace::{
|
||||
item::{Item, ItemHandle},
|
||||
|
@ -3349,6 +3349,8 @@ mod tests {
|
|||
use_new_terminal: false,
|
||||
allow_concurrent_runs: false,
|
||||
reveal: RevealStrategy::Always,
|
||||
hide: HideStrategy::Never,
|
||||
shell: Shell::System,
|
||||
};
|
||||
let project = Project::test(app_state.fs.clone(), [project_root.path()], cx).await;
|
||||
let window = cx.add_window(|cx| Workspace::test_new(project, cx));
|
||||
|
@ -3356,7 +3358,7 @@ mod tests {
|
|||
cx.update(|cx| {
|
||||
window
|
||||
.update(cx, |_workspace, cx| {
|
||||
cx.emit(workspace::Event::SpawnTask(spawn_in_terminal));
|
||||
cx.emit(workspace::Event::SpawnTask(Box::new(spawn_in_terminal)));
|
||||
})
|
||||
.unwrap();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue