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 (#20736)
  • Loading branch information
orta authored and mhegazy committed Jan 5, 2018
1 parent 12d5063 commit 5865494
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 5865494

Please sign in to comment.