From cf3769feb9837c6040820c3e6096c5cc2907adc0 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 2 Jul 2026 13:58:26 +0300 Subject: feat: follow focused pane cwd for new workspaces refs #919 --- src/app/api/tabs.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/app/api/tabs.rs') 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(); -- cgit v1.2.3