We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c915ab5 commit 92bb44eCopy full SHA for 92bb44e
lua/crates/lsp.lua
@@ -41,9 +41,10 @@ function M.server(opts)
41
---@param method string
42
---@param params any
43
---@param callback fun(method: string?, params: any)
44
+ ---@param notify_reply_callback? fun(request_id: integer)
45
---@return boolean
46
---@return integer
- function srv.request(method, params, callback)
47
+ function srv.request(method, params, callback, notify_reply_callback)
48
pcall(on_request, method, params)
49
local handler = handlers[method]
50
if handler then
@@ -56,6 +57,9 @@ function M.server(opts)
56
57
callback(nil, nil)
58
end
59
request_id = request_id + 1
60
+ if notify_reply_callback then
61
+ notify_reply_callback(request_id)
62
+ end
63
return true, request_id
64
65
0 commit comments