Skip to content

Commit

Permalink
add path arg, which was missed
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLee18 committed Oct 31, 2024
1 parent 7c7a299 commit 500277e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,22 @@ 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() {
eprintln!("{}", String::from_utf8(output.stderr).unwrap());
}
}
Err(ref e) => eprintln!("{e}"),
Ok(Err(ref e)) => eprintln!("{e}")
Ok(Err(ref e)) => eprintln!("{e}"),
}
notify_diagnostics!($conn, &params, $f);
}
Expand Down

0 comments on commit 500277e

Please sign in to comment.