Problem
crates/diffguard-lsp/src/server.rs:928 — Command::new("git").output() blocks the LSP server indefinitely on large repos. No timeout configured.
Fix
Add a timeout (e.g., 10 seconds) and kill_on_drop to the std::process::Command. Consider using tokio::process::Command with tokio::time::timeout.
Source
PR #5 review — CodeRabbit (comment #22).
Problem
crates/diffguard-lsp/src/server.rs:928—Command::new("git").output()blocks the LSP server indefinitely on large repos. No timeout configured.Fix
Add a timeout (e.g., 10 seconds) and
kill_on_dropto thestd::process::Command. Consider usingtokio::process::Commandwithtokio::time::timeout.Source
PR #5 review — CodeRabbit (comment #22).