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/layouts.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/app/api/layouts.rs') diff --git a/src/app/api/layouts.rs b/src/app/api/layouts.rs index a2705acc..044731a4 100644 --- a/src/app/api/layouts.rs +++ b/src/app/api/layouts.rs @@ -586,6 +586,7 @@ fn validate_layout_node( #[cfg(test)] mod tests { + use super::super::test_support::{exiting_test_command, shutdown_test_runtimes}; use super::*; use crate::{ api::schema::{ErrorResponse, ResponseResult, SuccessResponse}, @@ -593,16 +594,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 app_with_workspace() -> App { let (_api_tx, api_rx) = tokio::sync::mpsc::unbounded_channel(); let mut app = App::new( @@ -621,13 +612,6 @@ mod tests { app } - 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 layout_export_returns_portable_tree() { let mut app = app_with_workspace(); -- cgit v1.2.3