File tree 2 files changed +6
-9
lines changed
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ namespace ts {
6
6
newLine : string ;
7
7
useCaseSensitiveFileNames : boolean ;
8
8
write ( s : string ) : void ;
9
- writesToTty ?( ) : boolean ;
10
9
readFile ( path : string , encoding ?: string ) : string ;
11
10
writeFile ( path : string , data : string , writeByteOrderMark ?: boolean ) : void ;
12
11
watchFile ?( path : string , callback : ( path : string , removed ?: boolean ) => void ) : FileWatcher ;
@@ -379,7 +378,6 @@ namespace ts {
379
378
write ( s : string ) : void {
380
379
process . stdout . write ( s ) ;
381
380
} ,
382
- writesToTty : ( ) => _tty . isatty ( 1 ) ,
383
381
readFile,
384
382
writeFile,
385
383
watchFile : ( fileName , callback ) => {
Original file line number Diff line number Diff line change @@ -104,13 +104,12 @@ namespace ts {
104
104
sys . write ( output ) ;
105
105
}
106
106
107
- const shouldUseColors = ! ! sys . writesToTty && sys . writesToTty ( ) ;
108
- const redForegroundEscapeSequence = shouldUseColors ? "\u001b[91m" : "" ;
109
- const yellowForegroundEscapeSequence = shouldUseColors ? "\u001b[93m" : "" ;
110
- const blueForegroundEscapeSequence = shouldUseColors ? "\u001b[93m" : "" ;
111
- const gutterStyleSequence = shouldUseColors ? "\u001b[100;30m" : "" ;
112
- const gutterSeparator = shouldUseColors ? " " : " | " ;
113
- const resetEscapeSequence = shouldUseColors ? "\u001b[0m" : "" ;
107
+ const redForegroundEscapeSequence = "\u001b[91m" ;
108
+ const yellowForegroundEscapeSequence = "\u001b[93m" ;
109
+ const blueForegroundEscapeSequence = "\u001b[93m" ;
110
+ const gutterStyleSequence = "\u001b[100;30m" ;
111
+ const gutterSeparator = " " ;
112
+ const resetEscapeSequence = "\u001b[0m" ;
114
113
const elipsis = "..." ;
115
114
const categoryFormatMap : Map < string > = {
116
115
[ DiagnosticCategory . Warning ] : yellowForegroundEscapeSequence ,
You can’t perform that action at this time.
0 commit comments