mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Switch the pretty output to use colons to separate file:line:char so that lines are clickable in terminals (#20736)
This commit is contained in:
parent
12d5063e4c
commit
5865494453
@ -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);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
[96mtests/cases/compiler/index.ts[0m([93m2[0m,[93m1[0m): [91merror[0m[90m TS1005: [0m'}' expected.
|
||||
[96mtests/cases/compiler/index.ts[0m:[93m2[0m:[93m1[0m - [91merror[0m[90m TS1005: [0m'}' expected.
|
||||
|
||||
[30;47m2[0m
|
||||
[30;47m [0m [91m[0m
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user