Wait for up to 10s to attach to socket

This commit is contained in:
Ben Jackson 2019-10-13 18:39:54 +01:00
commit 82e351454d

View file

@ -57,11 +57,13 @@ function! vimspector#internal#channel#StartDebugSession( config ) abort
let l:addr = 'localhost:' . a:config[ 'port' ]
echo 'Connecting to ' . l:addr . '... (waiting fo up to 10 seconds)'
let s:ch = ch_open( l:addr,
\ {
\ 'mode': 'raw',
\ 'callback': funcref( 's:_OnServerData' ),
\ 'close_cb': funcref( 's:_OnClose' ),
\ 'waittime': 10000,
\ }
\ )