Skip to content

Commit

Permalink
Updated LKG.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Nov 2, 2015
1 parent d0cf93e commit a15c0de
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
14 changes: 6 additions & 8 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,6 @@ var ts;
write: function (s) {
process.stdout.write(s);
},
writesToTty: function () { return _tty.isatty(1); },
readFile: readFile,
writeFile: writeFile,
watchFile: function (fileName, callback) {
Expand Down Expand Up @@ -31234,13 +31233,12 @@ var ts;
output += category + " TS" + diagnostic.code + ": " + ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine) + ts.sys.newLine;
ts.sys.write(output);
}
var shouldUseColors = !!ts.sys.writesToTty && ts.sys.writesToTty();
var redForegroundEscapeSequence = shouldUseColors ? "\u001b[91m" : "";
var yellowForegroundEscapeSequence = shouldUseColors ? "\u001b[93m" : "";
var blueForegroundEscapeSequence = shouldUseColors ? "\u001b[93m" : "";
var gutterStyleSequence = shouldUseColors ? "\u001b[100;30m" : "";
var gutterSeparator = shouldUseColors ? " " : " | ";
var resetEscapeSequence = shouldUseColors ? "\u001b[0m" : "";
var redForegroundEscapeSequence = "\u001b[91m";
var yellowForegroundEscapeSequence = "\u001b[93m";
var blueForegroundEscapeSequence = "\u001b[93m";
var gutterStyleSequence = "\u001b[100;30m";
var gutterSeparator = " ";
var resetEscapeSequence = "\u001b[0m";
var elipsis = "...";
var categoryFormatMap = (_a = {},
_a[ts.DiagnosticCategory.Warning] = yellowForegroundEscapeSequence,
Expand Down
1 change: 0 additions & 1 deletion lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,6 @@ var ts;
write: function (s) {
process.stdout.write(s);
},
writesToTty: function () { return _tty.isatty(1); },
readFile: readFile,
writeFile: writeFile,
watchFile: function (fileName, callback) {
Expand Down
1 change: 0 additions & 1 deletion lib/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,6 @@ declare namespace ts {
newLine: string;
useCaseSensitiveFileNames: boolean;
write(s: string): void;
writesToTty?(): boolean;
readFile(path: string, encoding?: string): string;
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
watchFile?(path: string, callback: (path: string, removed?: boolean) => void): FileWatcher;
Expand Down
1 change: 0 additions & 1 deletion lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,6 @@ var ts;
write: function (s) {
process.stdout.write(s);
},
writesToTty: function () { return _tty.isatty(1); },
readFile: readFile,
writeFile: writeFile,
watchFile: function (fileName, callback) {
Expand Down
1 change: 0 additions & 1 deletion lib/typescriptServices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1429,7 +1429,6 @@ declare namespace ts {
newLine: string;
useCaseSensitiveFileNames: boolean;
write(s: string): void;
writesToTty?(): boolean;
readFile(path: string, encoding?: string): string;
writeFile(path: string, data: string, writeByteOrderMark?: boolean): void;
watchFile?(path: string, callback: (path: string, removed?: boolean) => void): FileWatcher;
Expand Down
1 change: 0 additions & 1 deletion lib/typescriptServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,6 @@ var ts;
write: function (s) {
process.stdout.write(s);
},
writesToTty: function () { return _tty.isatty(1); },
readFile: readFile,
writeFile: writeFile,
watchFile: function (fileName, callback) {
Expand Down

0 comments on commit a15c0de

Please sign in to comment.