We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e599a76 commit 826e468Copy full SHA for 826e468
1 file changed
lua/copilot/suggestion.lua
@@ -428,6 +428,11 @@ local function schedule(ctx)
428
end
429
logger.trace("suggestion schedule", ctx)
430
431
+ if copilot._copilot_timer then
432
+ cancel_inflight_requests(ctx)
433
+ stop_timer()
434
+ end
435
+
436
update_preview(ctx)
437
local bufnr = vim.api.nvim_get_current_buf()
438
copilot._copilot_timer = vim.fn.timer_start(copilot.debounce, function(timer)
0 commit comments