Skip to content

Commit cbb8574

Browse files
committed
Wait until request is removed from context
Fixes #230
1 parent ac22efb commit cbb8574

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/lsp/client.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ function! s:lsp_send(id, opts, type) abort " opts = { method, params?, on_notifi
228228
if (a:type == s:send_type_request)
229229
let l:id = l:request['id']
230230
if get(a:opts, 'sync', 0) !=# 0
231-
call async#job#wait([l:id])
231+
while has_key(l:ctx['requests'], l:request['id'])
232+
sleep 1m
233+
endwhile
232234
endif
233235
return l:id
234236
else

0 commit comments

Comments
 (0)