Skip to main content

Mountain/Vine/Server/Notification/
ExtensionDeactivated.rs

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