Skip to content

Commit 32018f6

Browse files
authored
Merge pull request microsoft#22496 from Microsoft/suppressMultipleDelete
Do not send delete event every poll for missing folder
2 parents 25f7e0b + 88c5e22 commit 32018f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/sys.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,10 @@ namespace ts {
747747

748748
function fileChanged(curr: any, prev: any) {
749749
if (+curr.mtime === 0) {
750+
if (eventKind === FileWatcherEventKind.Deleted) {
751+
// Already deleted file, no need to callback again
752+
return;
753+
}
750754
eventKind = FileWatcherEventKind.Deleted;
751755
}
752756
// previous event kind check is to ensure we send created event when file is restored or renamed twice (that is it disappears and reappears)

0 commit comments

Comments
 (0)