Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/ExtensionHost/
DebugServiceClose.rs

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