|
|
|
@ -240,10 +240,12 @@ where
|
|
|
|
|
counts
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let sym = &context.editor.config().diagnostics_symbol;
|
|
|
|
|
|
|
|
|
|
if warnings > 0 {
|
|
|
|
|
write(
|
|
|
|
|
context,
|
|
|
|
|
"●".to_string(),
|
|
|
|
|
sym.to_string(),
|
|
|
|
|
Some(context.editor.theme.get("warning")),
|
|
|
|
|
);
|
|
|
|
|
write(context, format!(" {} ", warnings), None);
|
|
|
|
@ -252,7 +254,7 @@ where
|
|
|
|
|
if errors > 0 {
|
|
|
|
|
write(
|
|
|
|
|
context,
|
|
|
|
|
"●".to_string(),
|
|
|
|
|
sym.to_string(),
|
|
|
|
|
Some(context.editor.theme.get("error")),
|
|
|
|
|
);
|
|
|
|
|
write(context, format!(" {} ", errors), None);
|
|
|
|
@ -277,6 +279,7 @@ where
|
|
|
|
|
}
|
|
|
|
|
counts
|
|
|
|
|
});
|
|
|
|
|
let sym = &context.editor.config().diagnostics_symbol;
|
|
|
|
|
|
|
|
|
|
if warnings > 0 || errors > 0 {
|
|
|
|
|
write(context, " W ".into(), None);
|
|
|
|
@ -285,7 +288,7 @@ where
|
|
|
|
|
if warnings > 0 {
|
|
|
|
|
write(
|
|
|
|
|
context,
|
|
|
|
|
"●".to_string(),
|
|
|
|
|
sym.to_string(),
|
|
|
|
|
Some(context.editor.theme.get("warning")),
|
|
|
|
|
);
|
|
|
|
|
write(context, format!(" {} ", warnings), None);
|
|
|
|
@ -294,7 +297,7 @@ where
|
|
|
|
|
if errors > 0 {
|
|
|
|
|
write(
|
|
|
|
|
context,
|
|
|
|
|
"●".to_string(),
|
|
|
|
|
sym.to_string(),
|
|
|
|
|
Some(context.editor.theme.get("error")),
|
|
|
|
|
);
|
|
|
|
|
write(context, format!(" {} ", errors), None);
|
|
|
|
|