File tree 6 files changed +6
-13
lines changed
6 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -1034,7 +1034,6 @@ var ts;
1034
1034
write: function (s) {
1035
1035
process.stdout.write(s);
1036
1036
},
1037
- writesToTty: function () { return _tty.isatty(1); },
1038
1037
readFile: readFile,
1039
1038
writeFile: writeFile,
1040
1039
watchFile: function (fileName, callback) {
@@ -31234,13 +31233,12 @@ var ts;
31234
31233
output += category + " TS" + diagnostic.code + ": " + ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine) + ts.sys.newLine;
31235
31234
ts.sys.write(output);
31236
31235
}
31237
- var shouldUseColors = !!ts.sys.writesToTty && ts.sys.writesToTty();
31238
- var redForegroundEscapeSequence = shouldUseColors ? "\u001b[91m" : "";
31239
- var yellowForegroundEscapeSequence = shouldUseColors ? "\u001b[93m" : "";
31240
- var blueForegroundEscapeSequence = shouldUseColors ? "\u001b[93m" : "";
31241
- var gutterStyleSequence = shouldUseColors ? "\u001b[100;30m" : "";
31242
- var gutterSeparator = shouldUseColors ? " " : " | ";
31243
- var resetEscapeSequence = shouldUseColors ? "\u001b[0m" : "";
31236
+ var redForegroundEscapeSequence = "\u001b[91m";
31237
+ var yellowForegroundEscapeSequence = "\u001b[93m";
31238
+ var blueForegroundEscapeSequence = "\u001b[93m";
31239
+ var gutterStyleSequence = "\u001b[100;30m";
31240
+ var gutterSeparator = " ";
31241
+ var resetEscapeSequence = "\u001b[0m";
31244
31242
var elipsis = "...";
31245
31243
var categoryFormatMap = (_a = {},
31246
31244
_a[ts.DiagnosticCategory.Warning] = yellowForegroundEscapeSequence,
Original file line number Diff line number Diff line change @@ -1034,7 +1034,6 @@ var ts;
1034
1034
write: function (s) {
1035
1035
process.stdout.write(s);
1036
1036
},
1037
- writesToTty: function () { return _tty.isatty(1); },
1038
1037
readFile: readFile,
1039
1038
writeFile: writeFile,
1040
1039
watchFile: function (fileName, callback) {
Original file line number Diff line number Diff line change @@ -1429,7 +1429,6 @@ declare namespace ts {
1429
1429
newLine : string ;
1430
1430
useCaseSensitiveFileNames : boolean ;
1431
1431
write ( s : string ) : void ;
1432
- writesToTty ?( ) : boolean ;
1433
1432
readFile ( path : string , encoding ?: string ) : string ;
1434
1433
writeFile ( path : string , data : string , writeByteOrderMark ?: boolean ) : void ;
1435
1434
watchFile ?( path : string , callback : ( path : string , removed ?: boolean ) => void ) : FileWatcher ;
Original file line number Diff line number Diff line change @@ -1939,7 +1939,6 @@ var ts;
1939
1939
write: function (s) {
1940
1940
process.stdout.write(s);
1941
1941
},
1942
- writesToTty: function () { return _tty.isatty(1); },
1943
1942
readFile: readFile,
1944
1943
writeFile: writeFile,
1945
1944
watchFile: function (fileName, callback) {
Original file line number Diff line number Diff line change @@ -1429,7 +1429,6 @@ declare namespace ts {
1429
1429
newLine : string ;
1430
1430
useCaseSensitiveFileNames : boolean ;
1431
1431
write ( s : string ) : void ;
1432
- writesToTty ?( ) : boolean ;
1433
1432
readFile ( path : string , encoding ?: string ) : string ;
1434
1433
writeFile ( path : string , data : string , writeByteOrderMark ?: boolean ) : void ;
1435
1434
watchFile ?( path : string , callback : ( path : string , removed ?: boolean ) => void ) : FileWatcher ;
Original file line number Diff line number Diff line change @@ -1939,7 +1939,6 @@ var ts;
1939
1939
write: function (s) {
1940
1940
process.stdout.write(s);
1941
1941
},
1942
- writesToTty: function () { return _tty.isatty(1); },
1943
1942
readFile: readFile,
1944
1943
writeFile: writeFile,
1945
1944
watchFile: function (fileName, callback) {
You can’t perform that action at this time.
0 commit comments