@@ -6,10 +6,6 @@ namespace ts {
6
6
fileWatcher ?: FileWatcher ;
7
7
}
8
8
9
- export interface CompilerOptions {
10
- diagnosticStyle ?: DiagnosticStyle ;
11
- }
12
-
13
9
let reportDiagnostic = reportDiagnosticSimply ;
14
10
15
11
function reportDiagnostics ( diagnostics : Diagnostic [ ] ) : void {
@@ -95,7 +91,7 @@ namespace ts {
95
91
96
92
function reportDiagnosticSimply ( diagnostic : Diagnostic ) : void {
97
93
let output = "" ;
98
-
94
+
99
95
if ( diagnostic . file ) {
100
96
let { line, character } = getLineAndCharacterOfPosition ( diagnostic . file , diagnostic . start ) ;
101
97
@@ -111,7 +107,7 @@ namespace ts {
111
107
const shouldUseColors = sys . writesToTty && sys . writesToTty ( ) ;
112
108
const redForegroundEscapeSequence = shouldUseColors ? "\u001b[91m" : "" ;
113
109
const gutterStyleSequence = shouldUseColors ? "\u001b[100;30m" : "" ;
114
- const gutterSeparator = shouldUseColors ? " " : " | "
110
+ const gutterSeparator = shouldUseColors ? " " : " | " ;
115
111
const resetEscapeSequence = shouldUseColors ? "\u001b[0m" : "" ;
116
112
117
113
function reportDiagnosticWithColorAndContext ( diagnostic : Diagnostic ) : void {
@@ -147,7 +143,7 @@ namespace ts {
147
143
// Output the gutter and the actual contents of the line.
148
144
output += gutterStyleSequence + padLeft ( i + 1 + "" , gutterWidth ) + resetEscapeSequence + gutterSeparator ;
149
145
output += lineContent + sys . newLine ;
150
-
146
+
151
147
// Output the gutter and the error span for the line using tildes.
152
148
output += gutterStyleSequence + padLeft ( "" , gutterWidth ) + resetEscapeSequence + gutterSeparator ;
153
149
output += redForegroundEscapeSequence ;
0 commit comments