diff --git a/crates/fs/src/fs_watcher.rs b/crates/fs/src/fs_watcher.rs index 0d6d914ae4c0bc3f8b92ec9f8be67d92c9ac6b64..2af1a0d47cd310ab8ba65620f29313d0d081e28d 100644 --- a/crates/fs/src/fs_watcher.rs +++ b/crates/fs/src/fs_watcher.rs @@ -203,10 +203,13 @@ impl GlobalWatcher { state.path_registrations.remove(®istration_state.path); drop(state); - self.watcher - .lock() - .unwatch(®istration_state.path) - .log_err(); + + if !cfg!(target_os = "linux") { + self.watcher + .lock() + .unwatch(®istration_state.path) + .log_err(); + } } } }