Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Vine/Server/Notification/
OutputChannelReplace.rs

1//! Cocoon → Mountain `outputChannel.replace` notification.
2//!
3//! Atomic buffer replacement: equivalent to a `clear` followed by an
4//! `append` of `value`, except the workbench renders both as a single
5//! frame so the user doesn't see a momentary flash of empty content.
6//! Forwarded to Sky as `sky://output/replace` where the workbench's
7//! channel buffer is rebuilt in a single tick.
8
9use serde_json::Value;
10
11use super::Support::RelayToSky::RelayToSky;
12use crate::Vine::Server::MountainVinegRPCService::MountainVinegRPCService;
13
14pub async fn OutputChannelReplace(Service:&MountainVinegRPCService, Parameter:&Value) {
15	RelayToSky(Service, "sky://output/replace", Parameter, "grpc", "[OutputChannel] replace");
16}