From 4fd2694f20d6abe4305e3f37ca06cf86762ad6a2 Mon Sep 17 00:00:00 2001 From: Yi Ming Date: Thu, 13 Feb 2025 10:19:34 +0800 Subject: [PATCH] fix(lsp): missing method parameter when canceling requests --- runtime/lua/vim/lsp/util.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index ba519614c0..9e84e27205 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -2218,6 +2218,7 @@ function M._refresh(method, opts) M._cancel_requests({ bufnr = bufnr, clients = clients, + method = method, type = 'pending', }) for _, client in ipairs(clients) do