Debounce in Code Completion



Is there a default solution for Debounce in autocomplete plugin development?

I'm currently working in a custom code completion plugin that works with an API to process the code context and return suggestions. What would be a proper way to implement a Debounce solution and prevent multiple requests to the service?

Thanks ;)

1 comment
Comment actions Permalink

There is currently no ready-made solution for this in IJ platform, so you'll have to take care of caching/throttling/timeouts in your completion contributor by yourself.


Please sign in to leave a comment.