pull/13814/merge
Kacy Stocks 2025-07-21 01:32:54 +02:00 committed by GitHub
commit 3b2f2672f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 1 deletions

View File

@ -92,6 +92,19 @@ pub fn general() -> std::io::Result<()> {
); );
writeln!(stdout, "{}", msg.yellow())?; writeln!(stdout, "{}", msg.yellow())?;
} }
}
Ok(())
}
/// Display warnings if runtime directories don't exist.
pub fn runtime_warnings() -> std::io::Result<()> {
let stdout = std::io::stdout();
let mut stdout = stdout.lock();
let rt_dirs = helix_loader::runtime_dirs();
for rt_dir in rt_dirs.iter() {
if !rt_dir.exists() { if !rt_dir.exists() {
let msg = format!("Runtime directory does not exist: {}", rt_dir.display()); let msg = format!("Runtime directory does not exist: {}", rt_dir.display());
writeln!(stdout, "{}", msg.yellow())?; writeln!(stdout, "{}", msg.yellow())?;
@ -404,11 +417,16 @@ pub fn print_health(health_arg: Option<String>) -> std::io::Result<()> {
Some("clipboard") => clipboard()?, Some("clipboard") => clipboard()?,
None | Some("all") => { None | Some("all") => {
general()?; general()?;
runtime_warnings()?;
clipboard()?; clipboard()?;
writeln!(std::io::stdout().lock())?; writeln!(std::io::stdout().lock())?;
languages_all()?; languages_all()?;
} }
Some(lang) => language(lang.to_string())?, Some(lang) => {
language(lang.to_string())?;
writeln!(std::io::stdout().lock())?;
runtime_warnings()?;
}
} }
Ok(()) Ok(())
} }