Skip to main content

Module debounce

Module debounce 

Source
Expand description

Typing debounce for editor plugins.

Provides a centralized debounce mechanism via FFI so all editor plugins (JetBrains, VS Code, Neovim, Zed) share identical timing logic.

Plugins call document_changed() on every document edit, and await_idle() before submitting to wait for typing to settle.

Functionsยง

await_idle
Block until the document has been idle for debounce_ms, or timeout_ms expires.
document_changed
Record a document change event for the given file.
is_idle
Check if the document has been idle (no changes) for at least debounce_ms.