Skip to content

Commit

Permalink
fix(diagnostic): pass correct flycheck arg for clear/cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
jannes committed Aug 13, 2024
1 parent b3de2d1 commit 61425a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/commands/fly_check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local rl = require('rustaceanvim.rust_analyzer')

---@param cmd rustaceanvim.flyCheckCommand
function M.fly_check(cmd)
local params = cmd == 'run' and vim.lsp.util.make_text_document_params() or {}
local params = cmd == 'run' and vim.lsp.util.make_text_document_params() or nil
rl.notify('rust-analyzer/' .. cmd .. 'Flycheck', params)
end

Expand Down

0 comments on commit 61425a0

Please sign in to comment.