Fix FS-related issues that were causing a test failure on linux (#13072)

This fixes `project_tests::rescan_and_remote_updates` .

That test was actually correctly failing, revealing two bugs on Linux.

Release Notes:

- Fixed an issue where file renames were not detected on Linux.
- Fixed performance problems caused by excessive file system events on
Linux.

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
af45db6d1eMax Brunsfeld committed on 6/14/2024, 11:03:34 PM· committed by GitHubparentfab4b01
3 files changedLine totals unavailable