Skip to content

Commit d85cb81

Browse files
authored
fix(lsp): FlyCheck request params (#702)
1 parent 94375c8 commit d85cb81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/rustaceanvim/commands/fly_check.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ local M = {}
22

33
local rl = require('rustaceanvim.rust_analyzer')
44

5+
local function make_flycheck_params()
6+
return { textDocument = vim.lsp.util.make_text_document_params() }
7+
end
8+
59
---@alias rustaceanvim.flyCheckCommand 'run' | 'clear' | 'cancel'
610

711
---@param cmd rustaceanvim.flyCheckCommand
812
function M.fly_check(cmd)
9-
local params = cmd == 'run' and vim.lsp.util.make_text_document_params() or nil
13+
local params = cmd == 'run' and make_flycheck_params() or nil
1014
rl.notify('rust-analyzer/' .. cmd .. 'Flycheck', params)
1115
end
1216

0 commit comments

Comments
 (0)