Skip to content

Commit

Permalink
fix(lsp_code_actions): clear CTX if no actions (closes #1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Dec 18, 2024
1 parent 691c392 commit 887f584
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/fzf-lua/providers/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,10 @@ M.code_actions = function(opts)
local _, has_code_actions = gen_lsp_contents(opts)

-- error or no sync request no results
if not has_code_actions then return end
if not has_code_actions then
core.__CTX = nil
return
end
end

opts.actions = opts.actions or {}
Expand Down

0 comments on commit 887f584

Please sign in to comment.