diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 9130a7fb..28add8e7 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2849,7 +2849,7 @@ dependencies = [ [[package]] name = "phoenix-code-ide" -version = "3.5.6" +version = "3.6.4" dependencies = [ "clipboard-files", "fix-path-env", diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index e3c7fe3f..a0d59678 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -82,6 +82,10 @@ fn _get_window_labels(app: tauri::AppHandle) -> Vec { .collect() } +#[tauri::command] +fn get_process_id() -> u32 { + std::process::id() +} #[tauri::command] fn _get_clipboard_files() -> Option> { @@ -336,7 +340,7 @@ fn main() { })) .on_window_event(|event| process_window_event(&event)) .invoke_handler(tauri::generate_handler![ - get_mac_deep_link_requests, + get_mac_deep_link_requests, get_process_id, toggle_devtools, console_log, console_error, _get_commandline_args, get_current_working_dir, _get_window_labels, put_item, get_item, get_all_items, delete_item,