Skip to main content

Vine/Server/Notification/
SetLanguageConfiguration.rs

1//! Cocoon → `set_language_configuration` notification.
2//! Carries brackets / indent rules / word-pattern / comments.
3//! Forwarded on `sky://language/configure`; Monaco's config side reads
4//! the payload and calls `monaco.languages.setLanguageConfiguration(...)`.
5
6use serde_json::Value;
7
8use crate::{Host::VineHost, dev_log};
9
10pub async fn SetLanguageConfiguration(Host:&dyn VineHost, Parameter:&Value) {
11	Host.EmitToRenderer("sky://language/configure", Parameter.clone());
12
13	dev_log!(
14		"grpc",
15		"[Language] configure id={}",
16		Parameter.get("languageId").and_then(Value::as_str).unwrap_or("?")
17	);
18}