Skip to content

Commit

Permalink
fix(rpc): fix unknown function error (#4675)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdjeg committed Jun 19, 2023
1 parent 2a0e554 commit 537f12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coc/rpc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ endfunction

function! coc#rpc#request_async(method, args, cb) abort
if !coc#rpc#ready()
return cb('coc.nvim service not started.')
return call(a:cb, ['coc.nvim service not started.'])
endif
call s:client['request_async'](a:method, a:args, a:cb)
endfunction
Expand Down

0 comments on commit 537f12b

Please sign in to comment.