Compare commits

...

1 Commits

Author SHA1 Message Date
Cole Miller
e02f8e879d don't remove watcher on linux
Co-authored-by: Kate <kate@zed.dev> Co-authored-by: John <jtur@zed.dev>
2025-10-07 12:30:02 -04:00

View File

@@ -203,10 +203,13 @@ impl GlobalWatcher {
state.path_registrations.remove(&registration_state.path);
drop(state);
self.watcher
.lock()
.unwatch(&registration_state.path)
.log_err();
if !cfg!(target_os = "linux") {
self.watcher
.lock()
.unwatch(&registration_state.path)
.log_err();
}
}
}
}