Mountain/IPC/WindServiceHandlers/Model/TextfileSave.rs
1#![allow(non_snake_case)]
2
3//! Save-intent hint. Actual disk write happens via
4//! `TextfileWrite`; this command exists so Wind can clear the
5//! editor's dirty-dot UI marker without writing twice. Logged
6//! at the `vfs` tag so a save trace appears in `Mountain.dev.log`.
7
8use std::sync::Arc;
9
10use serde_json::Value;
11
12use crate::{RunTime::ApplicationRunTime::ApplicationRunTime, dev_log};
13
14pub async fn TextfileSave(_runtime:Arc<ApplicationRunTime>, Arguments:Vec<Value>) -> Result<Value, String> {
15 let Uri = Arguments.first().and_then(|V| V.as_str()).unwrap_or("").to_string();
16 dev_log!("vfs", "textFile:save uri={:?}", Uri);
17 Ok(Value::Null)
18}