src/diagnostics.ts: Add column number to messages

This commit is contained in:
Sam Vervaeck 2020-05-23 22:52:00 +02:00
parent 2b5819ab52
commit aa1893918b

View file

@ -55,7 +55,7 @@ export class DiagnosticPrinter {
} }
} }
out += '\n' out += '\n'
out += chalk.bold.yellow(`${span.file.origPath}:${span.start.line}: `); out += chalk.bold.yellow(`${span.file.origPath}:${span.start.line}:${span.start.column}: `);
} }
switch (diagnostic.severity) { switch (diagnostic.severity) {
case 'error': case 'error':