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