Skip to content

Commit

Permalink
Switch the pretty output to use colons to separate file:line:char so …
Browse files Browse the repository at this point in the history
…that lines are clickable in terminals
  • Loading branch information
orta committed Dec 19, 2017
1 parent ccd5608 commit 9c67064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ namespace ts {
}

output += formatColorAndReset(relativeFileName, ForegroundColorEscapeSequences.Cyan);
output += "(";
output += ":";
output += formatColorAndReset(`${ firstLine + 1 }`, ForegroundColorEscapeSequences.Yellow);
output += ",";
output += ":";
output += formatColorAndReset(`${ firstLineChar + 1 }`, ForegroundColorEscapeSequences.Yellow);
output += "): ";
output += " - ";
}

const categoryColor = getCategoryFormat(diagnostic.category);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tests/cases/compiler/index.ts(2,1): error TS1005: '}' expected.
tests/cases/compiler/index.ts:2:1) - error TS1005: '}' expected.

2
  
Expand Down

0 comments on commit 9c67064

Please sign in to comment.