Skip to content

Commit

Permalink
fix(handlers): hover handler given correct params.
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ehrendreich authored and Will Ehrendreich committed Nov 7, 2023
1 parent b601f43 commit 66f01bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/ionide/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -680,11 +680,14 @@ M["textDocument/hover"] = function(error, result, context, config)
-- .. "result is: \n"
-- .. vim.inspect({ error or "", result or "", context or "", config or "" })
-- )
if result then
if result.content then
if not error then
if result then
if result.content then
vim.lsp.handlers.hover(error or {}, result.content.message or {}, context or {}, config or {})
end
end
end
vim.lsp.handlers.hover(error or {}, result or {}, context or {}, config or {})
-- vim.lsp.handlers.hover(error or {}, result or {}, context or {}, config or {})
end

M["fsharp/documentationSymbol"] = function(error, result, context, config)
Expand Down

0 comments on commit 66f01bd

Please sign in to comment.