How to cancel a completion request in my plugin? #1108
-
In https://github.com/mikavilpas/blink-ripgrep.nvim, I use ripgrep (rg) to get matching words in the current project. It works pretty well for small and mid sized projects, but in very large projects such as https://github.com/llvm/llvm-project (git clone is like 3,5 GB) it takes a long time to run a single ripgrep search. I have found that if the completion is canceled, ripgrep remains running until it finishes. Here is a demo where you can see ripgrep running at the bottom left corner. It continues to run even after the completion is canceled: ripgrep.movIs there a good way to detect when the completion menu is closed, for example? I already have a method of killing the search, so that should not be an issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We should cancel the request if the trigger emits a hide event for sure. Do you mind opening an issue for this? |
Beta Was this translation helpful? Give feedback.
We should cancel the request if the trigger emits a hide event for sure. Do you mind opening an issue for this?