Skip to main content

Vine/Server/Notification/
ProgressEnd.rs

1//! Cocoon `progress.end` notification. Fires once per
2//! `vscode.window.withProgress(...)` call when the task settles.
3//! Forwarded onto `sky://notification/progress-end`.
4
5use serde_json::{Value, json};
6
7use crate::Host::VineHost;
8
9pub async fn ProgressEnd(Host:&dyn VineHost, Parameter:&Value) {
10	let Handle = Parameter.get("handle").and_then(Value::as_str).unwrap_or("");
11
12	Host.EmitToRenderer("sky://notification/progress-end", json!({ "id": Handle }));
13}