mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
api: call multiple methods atomically (useful in async contexts)
remove unused response_id parameter of handle_nvim_... helpers
This commit is contained in:
@@ -452,7 +452,7 @@ static void on_request_event(void **argv)
|
||||
Array args = e->args;
|
||||
uint64_t request_id = e->request_id;
|
||||
Error error = ERROR_INIT;
|
||||
Object result = handler.fn(channel->id, request_id, args, &error);
|
||||
Object result = handler.fn(channel->id, args, &error);
|
||||
if (request_id != NO_RESPONSE) {
|
||||
// send the response
|
||||
msgpack_packer response;
|
||||
|
@@ -455,7 +455,6 @@ void msgpack_rpc_from_dictionary(Dictionary result, msgpack_packer *res)
|
||||
|
||||
/// Handler executed when an invalid method name is passed
|
||||
Object msgpack_rpc_handle_missing_method(uint64_t channel_id,
|
||||
uint64_t request_id,
|
||||
Array args,
|
||||
Error *error)
|
||||
{
|
||||
@@ -466,7 +465,6 @@ Object msgpack_rpc_handle_missing_method(uint64_t channel_id,
|
||||
|
||||
/// Handler executed when malformated arguments are passed
|
||||
Object msgpack_rpc_handle_invalid_arguments(uint64_t channel_id,
|
||||
uint64_t request_id,
|
||||
Array args,
|
||||
Error *error)
|
||||
{
|
||||
|
Reference in New Issue
Block a user