mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use anticipated 'echoIsTTY' member for ChakraCore host.
This commit is contained in:
@@ -500,6 +500,7 @@ namespace ts {
|
||||
executingFile: string;
|
||||
newLine?: string;
|
||||
useCaseSensitiveFileNames?: boolean;
|
||||
echoIsTTY?: boolean;
|
||||
echo(s: string): void;
|
||||
quit(exitCode?: number): void;
|
||||
fileExists(path: string): boolean;
|
||||
@@ -1085,6 +1086,9 @@ namespace ts {
|
||||
newLine: ChakraHost.newLine || "\r\n",
|
||||
args: ChakraHost.args,
|
||||
useCaseSensitiveFileNames: !!ChakraHost.useCaseSensitiveFileNames,
|
||||
writeOutputIsTTY() {
|
||||
return !!ChakraHost.echoIsTTY;
|
||||
},
|
||||
write: ChakraHost.echo,
|
||||
readFile(path: string, _encoding?: string) {
|
||||
// encoding is automatically handled by the implementation in ChakraHost
|
||||
|
||||
Reference in New Issue
Block a user