Reset the connection when the channel closes
This commit is contained in:
parent
dbef05b9a5
commit
73f8a66d2c
2 changed files with 4 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ endfunction
|
|||
|
||||
function! s:_OnClose( channel ) abort
|
||||
echom "Channel closed"
|
||||
_vimspector_session.OnChannelClosed()
|
||||
endfunction
|
||||
|
||||
function! s:_Send( msg ) abort
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@ class DebugSession( object ):
|
|||
def OnChannelData( self, data ):
|
||||
self._connection.OnData( data )
|
||||
|
||||
def OnChannelClosed( self ):
|
||||
self._connection = None
|
||||
|
||||
def Stop( self ):
|
||||
self._StopDebugAdapter()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue