Self time: 0.000077
count total (s) self (s)
1 0.000018 0.000012 let channel = cocclientget_channel(self)
1 0.000005 if empty(channel) | return '' | endif
1 0.000002 try
1 0.000001 if s:is_vim
1 0.000021 call ch_sendraw(channel, json_encode([0, [a:method, a:args]])."\n")
else
call call('rpcnotify', [channel, a:method] + a:args)
1 0.000001 endif
catch /.*/
if v:exception =~ 'E475'
if get(g:, 'coc_vim_leaving', 0) | return | endif
echohl Error | echom '['.self.name.'] server connection lost' | echohl None
let name = self.name
call s:on_exit(name, 0)
execute 'silent do User ConnectionLost'.toupper(name[0]).name[1:]
elseif v:exception =~ 'E12'
" neovim's bug, ignore it
else
echohl Error | echo 'Error on notify ('.a:method.'): '.v:exception | echohl None
endif
1 0.000001 endtry
FUNCTION cocapinotify()
Defined: ~/.vim/plugged/coc.nvim/autoload/coc/api.vim line 588
Called 1 time