support restarting via calling Launch again (todo: restart button doesn't work)
This commit is contained in:
parent
eeabd00b4a
commit
dbef05b9a5
4 changed files with 53 additions and 17 deletions
|
|
@ -29,6 +29,10 @@ function! vimspector#Launch() abort
|
|||
py3 _vimspector_session.Start()
|
||||
endfunction
|
||||
|
||||
function! vimspector#Restart() abort
|
||||
py3 _vimspector_session.Restart()
|
||||
endfunction
|
||||
|
||||
function! vimspector#ToggleBreakpoint() abort
|
||||
py3 _vimspector_session.ToggleBreakpoint()
|
||||
endfunction
|
||||
|
|
|
|||
|
|
@ -95,10 +95,8 @@ function! vimspector#internal#job#StartDebugSession( config ) abort
|
|||
endfunction
|
||||
|
||||
function! vimspector#internal#job#StopDebugSession() abort
|
||||
py3 _vimspector_session.Stop()
|
||||
|
||||
if job_status( s:job ) == 'run'
|
||||
job_stop( s:job, 'term' )
|
||||
call job_stop( s:job, 'term' )
|
||||
endif
|
||||
|
||||
unlet s:job
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue