diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-02 13:58:26 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-02 13:58:26 +0300 |
| commit | cf3769feb9837c6040820c3e6096c5cc2907adc0 (patch) | |
| tree | 1bf055988874a2e1c871bf4830a920a240108bda /src/app/api/tabs.rs | |
| parent | 2c422e60f1724ac5639c80abb73dc1f10a91b5c6 (diff) | |
feat: follow focused pane cwd for new workspaces
refs #919
Diffstat (limited to 'src/app/api/tabs.rs')
| -rw-r--r-- | src/app/api/tabs.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/app/api/tabs.rs b/src/app/api/tabs.rs index ce126ca7..1f29f54b 100644 --- a/src/app/api/tabs.rs +++ b/src/app/api/tabs.rs @@ -292,6 +292,7 @@ fn tab_not_found(id: String, tab_id: &str) -> String { #[cfg(test)] mod tests { + use super::super::test_support::{exiting_test_command, shutdown_test_runtimes}; use super::*; use crate::{ api::schema::SuccessResponse, @@ -299,23 +300,6 @@ mod tests { workspace::Workspace, }; - #[cfg(windows)] - fn exiting_test_command() -> &'static str { - "C:\\Windows\\System32\\whoami.exe" - } - - #[cfg(not(windows))] - fn exiting_test_command() -> &'static str { - "/usr/bin/true" - } - - fn shutdown_test_runtimes(app: &mut App) { - let runtimes: Vec<_> = app.terminal_runtimes.drain().collect(); - for (_terminal_id, runtime) in runtimes { - runtime.shutdown(); - } - } - #[test] fn api_tab_move_reorders_tabs_in_target_workspace() { let event_hub = crate::api::EventHub::default(); |
