@@ -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 ( ) {
@@ -469,9 +473,9 @@ namespace ts {
469
473
function getChakraSystem ( ) : System {
470
474
471
475
return {
472
- newLine : "\r\n" ,
476
+ newLine : ChakraHost . newLine || "\r\n" ,
473
477
args : ChakraHost . args ,
474
- useCaseSensitiveFileNames : false ,
478
+ useCaseSensitiveFileNames : ! ! ChakraHost . useCaseSensitiveFileNames ,
475
479
write : ChakraHost . echo ,
476
480
readFile ( path : string , encoding ?: string ) {
477
481
// encoding is automatically handled by the implementation in ChakraHost
0 commit comments