mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(lsp): don't show codelens for buffers that don't support it (#29690)
(cherry picked from commit 1f2f460b4a
)
This commit is contained in:

committed by
Christian Clason

parent
b94b341ef2
commit
24fa65a500
@@ -307,7 +307,13 @@ function M.refresh(opts)
|
||||
}
|
||||
active_refreshes[buf] = true
|
||||
|
||||
local request_ids = vim.lsp.buf_request(buf, ms.textDocument_codeLens, params, M.on_codelens)
|
||||
local request_ids = vim.lsp.buf_request(
|
||||
buf,
|
||||
ms.textDocument_codeLens,
|
||||
params,
|
||||
M.on_codelens,
|
||||
function() end
|
||||
)
|
||||
if vim.tbl_isempty(request_ids) then
|
||||
active_refreshes[buf] = nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user