Revert "perf: parse array instead of combining it to string (#1175)" (#1199)

This reverts commit f53a98754e.
This commit is contained in:
Prabir Shrestha
2021-06-16 00:14:44 -07:00
committed by GitHub
parent 9ecbe24af9
commit fb0a72306e
2 changed files with 115 additions and 108 deletions

View File

@@ -1031,12 +1031,8 @@ endfunction
function! s:request_on_notification(ctx, id, data, event) abort
if a:ctx['cancelled'] | return | endif " caller already unsubscribed so don't bother notifying
let a:ctx['done'] = 1
if has_key(a:data, 'response') && has_key(a:data['response'], 'error')
call a:ctx['error'](extend({ 'server_name': a:ctx['server_name'] }, a:data))
else
call a:ctx['next'](extend({ 'server_name': a:ctx['server_name'] }, a:data))
call a:ctx['complete']()
endif
call a:ctx['next'](extend({ 'server_name': a:ctx['server_name'] }, a:data))
call a:ctx['complete']()
endfunction
function! s:request_cancel(ctx) abort