Skip to content

Commit

Permalink
call inject_42h with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLee18 committed Oct 31, 2024
1 parent 500277e commit ec07d2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pub struct InitOptions {
pub path: String,
pub name: String,
pub email: String,
pub offset: Option<i32>,
}

macro_rules! diag_on_event {
Expand All @@ -47,6 +48,8 @@ macro_rules! diag_on_event {
&op.email,
"--path",
params.text_document.uri.path().as_str(),
"--offset",
&format!("{}", op.offset.unwrap_or(0)),
])
.output()
.map_err(|e| format!("failed to execute {}: {e:?}", op.path))?;
Expand Down

0 comments on commit ec07d2c

Please sign in to comment.