Skip to main content

Mountain/IPC/WindServiceHandlers/ExtensionHost/
DebugServiceClose.rs

1#![allow(unused_variables, dead_code, unused_imports)]
2
3//! Wire method: `extensionhostdebugservice:close`.
4//! Emits `sky://exthost/debug-close` so the Sky bridge can react.
5
6use serde_json::{Value, json};
7use tauri::{AppHandle, Emitter};
8
9pub async fn Fn(ApplicationHandle:AppHandle) -> Result<Value, String> {
10	crate::dev_log!("exthost", "extensionhostdebugservice:close");
11
12	if let Err(Error) = ApplicationHandle.emit("sky://exthost/debug-close", json!({})) {
13		crate::dev_log!("exthost", "warn: extensionhostdebugservice:close emit failed: {}", Error);
14	}
15
16	Ok(Value::Null)
17}