Mountain/IPC/WindServiceHandlers/ExtensionHost/
DebugServiceReload.rs1#![allow(unused_variables, dead_code, unused_imports)]
2
3use serde_json::{Value, json};
8use tauri::{AppHandle, Emitter};
9use CommonLibrary::IPC::SkyEvent::SkyEvent;
10
11pub async fn Fn(ApplicationHandle:AppHandle) -> Result<Value, String> {
12 crate::dev_log!("exthost", "extensionhostdebugservice:reload");
13
14 if let Err(Error) = ApplicationHandle.emit(SkyEvent::ExtHostDebugReload.AsStr(), json!({})) {
15 crate::dev_log!("exthost", "warn: extensionhostdebugservice:reload emit failed: {}", Error);
16 }
17
18 Ok(Value::Null)
19}