From 2d20b5d8503cada1b23752803701c3b4d943b142 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Tue, 19 Aug 2025 15:53:09 -0600 Subject: [PATCH] Log command that is run --- crates/zed/src/main.rs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs index e22df2efb9..04325b22e5 100644 --- a/crates/zed/src/main.rs +++ b/crates/zed/src/main.rs @@ -807,14 +807,21 @@ pub fn main() { }; loop { + let cursor_position_arg = format!( + "{}:{}:{}", + cursor.path.display(), + cursor.point.row + 1, + cursor.point.column + 1 + ); + log::info!( + "Running {} {} {}", + selection_change_command, + cursor.worktree_path.display(), + cursor_position_arg + ); let status = smol::process::Command::new(&selection_change_command) .arg(cursor.worktree_path.as_ref()) - .arg(format!( - "{}:{}:{}", - cursor.path.display(), - cursor.point.row + 1, - cursor.point.column + 1 - )) + .arg(cursor_position_arg) .status() .await; match status {