Skip to content

Commit f9385cc

Browse files
authored
(fix) treat info/hints separately
#385
1 parent 1452631 commit f9385cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/svelte-check/src/writers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ export class HumanFriendlyWriter implements Writer {
5353

5454
if (diagnostic.severity === DiagnosticSeverity.Error) {
5555
this.stream.write(`${chalk.red('Error')}: ${msg}\n`);
56-
} else {
56+
} else if (diagnostic.severity === DiagnosticSeverity.Warning) {
5757
this.stream.write(`${chalk.yellow('Warn')}: ${msg}\n`);
58+
} else {
59+
this.stream.write(`${chalk.gray('Hint')}: ${msg}\n`);
5860
}
5961

6062
this.stream.write('\n');

0 commit comments

Comments
 (0)