File tree Expand file tree Collapse file tree 6 files changed +6
-13
lines changed Expand file tree Collapse file tree 6 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -1034,7 +1034,6 @@ var ts;
10341034 write: function (s) {
10351035 process.stdout.write(s);
10361036 },
1037- writesToTty: function () { return _tty.isatty(1); },
10381037 readFile: readFile,
10391038 writeFile: writeFile,
10401039 watchFile: function (fileName, callback) {
@@ -31234,13 +31233,12 @@ var ts;
3123431233 output += category + " TS" + diagnostic.code + ": " + ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine) + ts.sys.newLine;
3123531234 ts.sys.write(output);
3123631235 }
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";
3124431242 var elipsis = "...";
3124531243 var categoryFormatMap = (_a = {},
3124631244 _a[ts.DiagnosticCategory.Warning] = yellowForegroundEscapeSequence,
Original file line number Diff line number Diff line change @@ -1034,7 +1034,6 @@ var ts;
10341034 write: function (s) {
10351035 process.stdout.write(s);
10361036 },
1037- writesToTty: function () { return _tty.isatty(1); },
10381037 readFile: readFile,
10391038 writeFile: writeFile,
10401039 watchFile: function (fileName, callback) {
Original file line number Diff line number Diff line change @@ -1429,7 +1429,6 @@ declare namespace ts {
14291429 newLine : string ;
14301430 useCaseSensitiveFileNames : boolean ;
14311431 write ( s : string ) : void ;
1432- writesToTty ?( ) : boolean ;
14331432 readFile ( path : string , encoding ?: string ) : string ;
14341433 writeFile ( path : string , data : string , writeByteOrderMark ?: boolean ) : void ;
14351434 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;
19391939 write: function (s) {
19401940 process.stdout.write(s);
19411941 },
1942- writesToTty: function () { return _tty.isatty(1); },
19431942 readFile: readFile,
19441943 writeFile: writeFile,
19451944 watchFile: function (fileName, callback) {
Original file line number Diff line number Diff line change @@ -1429,7 +1429,6 @@ declare namespace ts {
14291429 newLine : string ;
14301430 useCaseSensitiveFileNames : boolean ;
14311431 write ( s : string ) : void ;
1432- writesToTty ?( ) : boolean ;
14331432 readFile ( path : string , encoding ?: string ) : string ;
14341433 writeFile ( path : string , data : string , writeByteOrderMark ?: boolean ) : void ;
14351434 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;
19391939 write: function (s) {
19401940 process.stdout.write(s);
19411941 },
1942- writesToTty: function () { return _tty.isatty(1); },
19431942 readFile: readFile,
19441943 writeFile: writeFile,
19451944 watchFile: function (fileName, callback) {
You can’t perform that action at this time.
0 commit comments