DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/DevLog/IsShort.rs
1//! `true` when `Trace=short` is set - enables path aliasing
2//! and consecutive-duplicate compression in `dev_log!`.
3
4use std::sync::OnceLock;
5
6use crate::IPC::DevLog::IsEnabled;
7
8static SHORT_MODE:OnceLock<bool> = OnceLock::new();
9
10pub fn Fn() -> bool { *SHORT_MODE.get_or_init(|| IsEnabled::EnabledTags().iter().any(|T| T == "short")) }