mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Merge pull request #22496 from Microsoft/suppressMultipleDelete
Do not send delete event every poll for missing folder
This commit is contained in:
@@ -747,6 +747,10 @@ namespace ts {
|
||||
|
||||
function fileChanged(curr: any, prev: any) {
|
||||
if (+curr.mtime === 0) {
|
||||
if (eventKind === FileWatcherEventKind.Deleted) {
|
||||
// Already deleted file, no need to callback again
|
||||
return;
|
||||
}
|
||||
eventKind = FileWatcherEventKind.Deleted;
|
||||
}
|
||||
// previous event kind check is to ensure we send created event when file is restored or renamed twice (that is it disappears and reappears)
|
||||
|
||||
Reference in New Issue
Block a user