Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/ExtensionHost/
DebugServiceReload.rs

1//! Wire method: `extensionhostdebugservice:reload`.
2//! Emits `sky://exthost/debug-reload` so Wind can tear down caches before
3//! a fresh Cocoon spawn.
4
5use serde_json::{Value, json};
6use tauri::{AppHandle, Emitter};
7use CommonLibrary::IPC::SkyEvent::SkyEvent;
8
9pub async fn Fn(ApplicationHandle:AppHandle) -> Result<Value, String> {
10	crate::dev_log!("exthost", "extensionhostdebugservice:reload");
11
12	if let Err(Error) = ApplicationHandle.emit(SkyEvent::ExtHostDebugReload.AsStr(), json!({})) {
13		crate::dev_log!("exthost", "warn: extensionhostdebugservice:reload emit failed: {}", Error);
14	}
15
16	Ok(Value::Null)
17}