Mountain/Vine/Server/Notification/ExtensionDeactivated.rs
1//! Cocoon → Mountain `ExtensionDeactivated` notification.
2//! Log-only today - Wind listens on `cocoon:extensionActivated` for the
3//! positive half; extensions rarely deactivate at runtime outside
4//! uninstall (which fires a separate `sky://extensions/uninstalled`
5//! emit). Kept named so the wire method doesn't fall to `notif-drop`.
6
7use serde_json::Value;
8
9use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
10
11pub async fn ExtensionDeactivated(_Service:&MountainVinegRPCService, Parameter:&Value) {
12 dev_log!(
13 "grpc",
14 "[MountainVinegRPCService] Extension deactivated: {}",
15 Parameter.get("extensionId").and_then(Value::as_str).unwrap_or("?")
16 );
17}