File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -378,7 +378,8 @@ namespace ts {
378378 const filePath = typeof relativeFileName !== "string"
379379 ? undefined
380380 : toPath ( relativeFileName , baseDirPath , createGetCanonicalFileName ( sys . useCaseSensitiveFileNames ) ) ;
381- if ( eventName === "change" && fileWatcherCallbacks . contains ( filePath ) ) {
381+ // Some applications save a working file via rename operations
382+ if ( ( eventName === "change" || eventName === "rename" ) && fileWatcherCallbacks . contains ( filePath ) ) {
382383 for ( const fileCallback of fileWatcherCallbacks . get ( filePath ) ) {
383384 fileCallback ( filePath ) ;
384385 }
Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ namespace ts {
486486 }
487487
488488 function watchedDirectoryChanged ( fileName : string ) {
489- if ( fileName && ! ts . isSupportedSourceFileName ( fileName , commandLine . options ) ) {
489+ if ( fileName && ! ts . isSupportedSourceFileName ( fileName , compilerOptions ) ) {
490490 return ;
491491 }
492492
You can’t perform that action at this time.
0 commit comments