Revert "Debounce language server file system events (#30773)" (#31008)

Let's keep https://github.com/zed-industries/zed/pull/30773 and its
complexity out of Zed sources if we can:
https://github.com/rust-lang/rust-analyzer/pull/19814 seems to do a
similar thing and might have fixed the root cause.

If not, we can always reapply this later after ensuring.

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-05-20 15:05:21 +03:00 committed by GitHub
parent a1be61949d
commit 944a0df436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 63 deletions

View file

@ -1,8 +1,8 @@
#![allow(clippy::format_collect)]
use crate::{
Event, git_store::StatusEntry, lsp_store::FS_WATCH_DEBOUNCE_TIMEOUT,
task_inventory::TaskContexts, task_store::TaskSettingsLocation, *,
Event, git_store::StatusEntry, task_inventory::TaskContexts, task_store::TaskSettingsLocation,
*,
};
use buffer_diff::{
BufferDiffEvent, CALCULATE_DIFF_TASK, DiffHunkSecondaryStatus, DiffHunkStatus,
@ -1190,9 +1190,6 @@ async fn test_reporting_fs_changes_to_language_servers(cx: &mut gpui::TestAppCon
// The language server receives events for the FS mutations that match its watch patterns.
cx.executor().run_until_parked();
cx.executor().advance_clock(FS_WATCH_DEBOUNCE_TIMEOUT);
cx.executor().run_until_parked();
assert_eq!(
&*file_changes.lock(),
&[