Skip to content

Commit 9c327af

Browse files
authored
Merge pull request #232 from prabirshrestha/fix-230
Wait until request is removed from context
2 parents fb7c2e6 + cbb8574 commit 9c327af

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)