@@ -51,6 +51,8 @@ namespace ts {
51
51
args : string [ ] ;
52
52
currentDirectory : string ;
53
53
executingFile : string ;
54
+ newLine ?: string ;
55
+ useCaseSensitiveFileNames ?: boolean ;
54
56
echo ( s : string ) : void ;
55
57
quit ( exitCode ?: number ) : void ;
56
58
fileExists ( path : string ) : boolean ;
@@ -60,6 +62,8 @@ namespace ts {
60
62
readFile ( path : string ) : string ;
61
63
writeFile ( path : string , contents : string ) : void ;
62
64
readDirectory ( path : string , extension ?: string , exclude ?: string [ ] ) : string [ ] ;
65
+ watchFile ?( path : string , callback : ( path : string , removed ?: boolean ) => void ) : FileWatcher ;
66
+ watchDirectory ?( path : string , callback : ( path : string ) => void , recursive ?: boolean ) : FileWatcher ;
63
67
} ;
64
68
65
69
export var sys : System = ( function ( ) {
@@ -474,9 +478,9 @@ namespace ts {
474
478
function getChakraSystem ( ) : System {
475
479
476
480
return {
477
- newLine : "\r\n" ,
481
+ newLine : ChakraHost . newLine || "\r\n" ,
478
482
args : ChakraHost . args ,
479
- useCaseSensitiveFileNames : false ,
483
+ useCaseSensitiveFileNames : ! ! ChakraHost . useCaseSensitiveFileNames ,
480
484
write : ChakraHost . echo ,
481
485
readFile ( path : string , encoding ?: string ) {
482
486
// encoding is automatically handled by the implementation in ChakraHost
0 commit comments