* Call one of the host's WatchOptions callbacks. They are diagnostics: * one that throws is logged and changes nothing here. A sync runs from a timer, * so a throw would have no caller and end the host's process as an unhandled * rejection. It would also read as a failed sync, or sk
(name: string, call: () => void)
| 849 | * degrade owes. |
| 850 | */ |
| 851 | private callHost(name: string, call: () => void): void { |
| 852 | try { |
| 853 | call(); |
| 854 | } catch (err) { |
| 855 | logWarn(`File watcher ${name} callback threw`, { error: err instanceof Error ? err.message : String(err) }); |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | /** |
| 860 | * Disable live watching after a terminal runtime failure |