Skip to main content

DEFAULT_DEBOUNCE_WINDOW

Constant DEFAULT_DEBOUNCE_WINDOW 

Source
pub const DEFAULT_DEBOUNCE_WINDOW: Duration;
Expand description

Default debounce window. Matches Helix’s diff debounce (50ms); short enough that the visual lag is imperceptible during sustained typing, long enough that a burst of 5–10 keystrokes collapses to a single recompute. Overridable via DiffSubsystem::with_debounce_window for tests and host configuration.