Add a reset command to undo all the UI and reset everything

This commit is contained in:
Ben Jackson 2018-05-27 21:34:44 +01:00
commit 7600e1e652
7 changed files with 98 additions and 9 deletions

View file

@ -19,16 +19,18 @@ let s:save_cpo = &cpo
set cpo&vim
" }}}
py3 << EOF
from vimspector import debug_session
_vimspector_session = debug_session.DebugSession()
EOF
call vimspector#internal#state#Reset()
" TODO: Test function
function! vimspector#Launch() abort
py3 _vimspector_session.Start()
endfunction
function! vimspector#Reset() abort
py3 _vimspector_session.Reset()
endfunction
function! vimspector#Restart() abort
py3 _vimspector_session.Restart()
endfunction