* A deleted DIRECTORY arrives as one event on the directory's own path — * no source extension, so the source-file filter drops it, and the files * underneath may never get events of their own (Windows's recursive * watcher reports only the top-most removed entry; macOS FSEvents can * co
(rel: string)
| 752 | * costs at most one no-op scan-diff, absorbed by the debounce. |
| 753 | */ |
| 754 | private maybeScheduleForRemovedDir(rel: string): void { |
| 755 | try { |
| 756 | fs.statSync(path.join(this.projectRoot, rel)); |
| 757 | return; // still on disk — an ordinary non-source change, ignore |
| 758 | } catch { |
| 759 | /* gone — fall through */ |
| 760 | } |
| 761 | logDebug('Non-source path removed; scheduling sync for possible directory removal', { |
| 762 | path: rel, |
| 763 | }); |
| 764 | this.needsFullScan = true; |
| 765 | this.scheduleSync(); |
| 766 | } |
| 767 | |
| 768 | /** |
| 769 | * On Windows, libuv reports a watched folder that is being deleted by the |
no test coverage detected