Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lua/crates/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ function M.server(opts)
---@param method string
---@param params any
---@param callback fun(method: string?, params: any)
---@param notify_reply_callback fun(request_id: integer)
Comment thread
saecki marked this conversation as resolved.
Outdated
---@return boolean
---@return integer
function srv.request(method, params, callback)
function srv.request(method, params, callback, notify_reply_callback)
pcall(on_request, method, params)
local handler = handlers[method]
if handler then
Expand All @@ -56,6 +57,9 @@ function M.server(opts)
callback(nil, nil)
end
request_id = request_id + 1
if notify_reply_callback then
notify_reply_callback(request_id)
end
return true, request_id
end

Expand Down
Loading