From 95cb603b2f7703199c063bcbe130e13f0f64a5cc Mon Sep 17 00:00:00 2001 From: norpan Date: Mon, 27 Aug 2018 20:28:38 +0200 Subject: [PATCH] Make compiler errors a little easier to read I had a hard time reading the errors from Elm 0.19, because it uses color to signal the relevant information. However, it seems we can't have color in the vscode.Diagnostic, so I propose we put '#' around all parts of compiler errors that are decorated. --- src/elmLinter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elmLinter.ts b/src/elmLinter.ts index 6eb9d73..fcad649 100644 --- a/src/elmLinter.ts +++ b/src/elmLinter.ts @@ -59,7 +59,7 @@ function parseErrorsElm019(line) { details: problem.message .map( message => - typeof message === 'string' ? message : message.string + typeof message === 'string' ? message : '#' + message.string + '#' ) .join(''), region: problem.region,