File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,7 @@ namespace ts {
456
456
setTimeout ?( callback : ( ...args : any [ ] ) => void , ms : number , ...args : any [ ] ) : any ;
457
457
clearTimeout ?( timeoutId : any ) : void ;
458
458
clearScreen ?( ) : void ;
459
+ /*@internal */ setBlocking ?( ) : void ;
459
460
}
460
461
461
462
export interface FileWatcher {
@@ -614,6 +615,11 @@ namespace ts {
614
615
clearTimeout,
615
616
clearScreen : ( ) => {
616
617
process . stdout . write ( "\x1Bc" ) ;
618
+ } ,
619
+ setBlocking : ( ) => {
620
+ if ( process . stdout && process . stdout . _handle && process . stdout . _handle . setBlocking ) {
621
+ process . stdout . _handle . setBlocking ( true ) ;
622
+ }
617
623
}
618
624
} ;
619
625
return nodeSystem ;
Original file line number Diff line number Diff line change @@ -399,8 +399,9 @@ if (ts.Debug.isDebugging) {
399
399
if ( ts . sys . tryEnableSourceMapsForHost && / ^ d e v e l o p m e n t $ / i. test ( ts . sys . getEnvironmentVariable ( "NODE_ENV" ) ) ) {
400
400
ts . sys . tryEnableSourceMapsForHost ( ) ;
401
401
}
402
- declare var process : any ;
403
- if ( process && process . stdout && process . stdout . _handle && process . stdout . _handle . setBlocking ) {
404
- process . stdout . _handle . setBlocking ( true ) ;
402
+
403
+ if ( ts . sys . setBlocking ) {
404
+ ts . sys . setBlocking ( ) ;
405
405
}
406
+
406
407
ts . executeCommandLine ( ts . sys . args ) ;
You can’t perform that action at this time.
0 commit comments