use super::*;
#[inline]
pub fn format_yaml(input: &str) -> String {
let opts: &'static Options = vscode_tidy_options_ref();
tidy::yaml::format(input, &opts.yaml).unwrap_or_else(|_: tidy::Error| input.to_string())
}
#[inline]
pub(crate) fn format_yaml_with_path(input: &str, path: &Path) -> String {
let mut yaml_opts: tidy::yaml::Options = vscode_tidy_options_ref().yaml.clone();
yaml_opts.filepath = Some(path.to_string_lossy().into_owned());
tidy::yaml::format(input, &yaml_opts).unwrap_or_else(|_: tidy::Error| input.to_string())
}