DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Vine/Server/Notification/TreeRefresh.rs
1//! Cocoon → Mountain `tree.refresh` notification.
2//!
3//! Fired when an extension's `TreeDataProvider.onDidChangeTreeData` event
4//! emitter fires. The payload `{ handle, viewId, element }` is relayed to
5//! Sky as `sky://tree-view/refresh`; Sky's handler resolves the view via
6//! `TreeViewByViewId(viewId)` and calls `ITreeView.refresh()` which
7//! triggers a fresh `getChildren()` round-trip back to the extension.
8
9use serde_json::Value;
10
11use super::Support::RelayToSky::RelayToSky;
12use crate::Vine::Server::MountainVinegRPCService::MountainVinegRPCService;
13
14pub async fn TreeRefresh(Service:&MountainVinegRPCService, Parameter:&Value) {
15 RelayToSky(Service, "sky://tree-view/refresh", Parameter, "grpc", "[Tree] refresh");
16}