From ec07d2c594d7796229a6cd1cd3cd775c4401e5e1 Mon Sep 17 00:00:00 2001 From: DavidLee18 Date: Fri, 1 Nov 2024 00:11:11 +0900 Subject: [PATCH] call inject_42h with offset --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index bc7cb56..c2cf604 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,7 @@ pub struct InitOptions { pub path: String, pub name: String, pub email: String, + pub offset: Option, } macro_rules! diag_on_event { @@ -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))?;