diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 3274e81ce818d..a99128fbf6b76 100755 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -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); diff --git a/tests/baselines/reference/prettyContextNotDebugAssertion.errors.txt b/tests/baselines/reference/prettyContextNotDebugAssertion.errors.txt index f03b87ba94749..3c94d3bd0b8f3 100644 --- a/tests/baselines/reference/prettyContextNotDebugAssertion.errors.txt +++ b/tests/baselines/reference/prettyContextNotDebugAssertion.errors.txt @@ -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