File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,8 @@ namespace ts {
378
378
const filePath = typeof relativeFileName !== "string"
379
379
? undefined
380
380
: 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 ) ) {
382
383
for ( const fileCallback of fileWatcherCallbacks . get ( filePath ) ) {
383
384
fileCallback ( filePath ) ;
384
385
}
Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ namespace ts {
486
486
}
487
487
488
488
function watchedDirectoryChanged ( fileName : string ) {
489
- if ( fileName && ! ts . isSupportedSourceFileName ( fileName , commandLine . options ) ) {
489
+ if ( fileName && ! ts . isSupportedSourceFileName ( fileName , compilerOptions ) ) {
490
490
return ;
491
491
}
492
492
You can’t perform that action at this time.
0 commit comments