Skip to content

Commit

Permalink
Fix #60
Browse files Browse the repository at this point in the history
Updated for Neovim 0.7. This might break in the older version of Neovim.
  • Loading branch information
cannorin committed Sep 2, 2022
1 parent 71ea450 commit a0685e9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/ionide/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ local function create_handlers()
local handlers = fn['fsharp#get_handlers']()
local result = {}
for method, func_name in pairs(handlers) do
local handler = function(err, method_, params, client_id, bufnr, _config)
if params == nil or not (method == method_) then return end
local handler = function(err, params, ctx, _config)
if params == nil or not (method == ctx.method) then return end
fn[func_name](params)
end
result[method] = handler
Expand Down Expand Up @@ -242,13 +242,13 @@ function M.status()
end

function M.call(method, params, callback_key)
local handler = function(err, method, result, client_id, bufnr, config)
local handler = function(err, result, ctx, config)
if result ~= nil then
fn['fsharp#resolve_callback'](callback_key, {
result = result,
err = err,
client_id = client_id,
bufnr = bufnr
client_id = ctx.client_id,
bufnr = ctx.bufnr
})
end
end
Expand Down

0 comments on commit a0685e9

Please sign in to comment.