Debounce in Code Completion

Answered

Hi,

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.

1

Please sign in to leave a comment.