From 500277ea547ec42f3f4b70cb48cdbd2e2e1ddf2b Mon Sep 17 00:00:00 2001 From: DavidLee18 Date: Thu, 31 Oct 2024 22:00:28 +0900 Subject: [PATCH] add path arg, which was missed --- src/main.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 275654f..bc7cb56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,14 @@ macro_rules! diag_on_event { match $option { Ok(Ok(ref op)) => { let output = process::Command::new(&op.path) - .args(["--name", &op.name, "--email", &op.email]) + .args([ + "--name", + &op.name, + "--email", + &op.email, + "--path", + params.text_document.uri.path().as_str(), + ]) .output() .map_err(|e| format!("failed to execute {}: {e:?}", op.path))?; if !output.status.success() { @@ -48,7 +55,7 @@ macro_rules! diag_on_event { } } Err(ref e) => eprintln!("{e}"), - Ok(Err(ref e)) => eprintln!("{e}") + Ok(Err(ref e)) => eprintln!("{e}"), } notify_diagnostics!($conn, ¶ms, $f); }