fix(lsp): reset the applied hints on refresh request #32446

This commit is contained in:
Yi Ming
2025-02-24 00:48:08 +08:00
committed by GitHub
parent 2a733ec6cc
commit 6bc7979044

View File

@ -94,6 +94,9 @@ function M.on_refresh(err, _, ctx)
for _, bufnr in ipairs(vim.lsp.get_buffers_by_client_id(ctx.client_id)) do
for _, winid in ipairs(api.nvim_list_wins()) do
if api.nvim_win_get_buf(winid) == bufnr then
if bufstates[bufnr] then
bufstates[bufnr].applied = {}
end
util._refresh(ms.textDocument_inlayHint, { bufnr = bufnr })
end
end