React to the debugpyAttach event and try and start a new session; this gets tripped up by the _vimspector.Variables (etc) buffers already existing. Probably need to add the sesssion ID to the buffer name
This commit is contained in:
parent
099431ba55
commit
0cdab6be4e
7 changed files with 117 additions and 10 deletions
|
|
@ -27,12 +27,10 @@ endif
|
|||
function! vimspector#internal#state#Reset() abort
|
||||
try
|
||||
py3 import vim
|
||||
py3 _vimspector_session_manager = __import__(
|
||||
py3 _vimspector_session = __import__(
|
||||
\ "vimspector",
|
||||
\ fromlist=[ "session_manager" ] ).session_manager.SessionManager()
|
||||
|
||||
py3 _vimspector_session = _vimspector_session_manager =
|
||||
\ _vimspector_session_manager.NewSession( vim.eval( 's:prefix' ) )
|
||||
\ fromlist=[ "session_manager" ] ).session_manager.Get().NewSession(
|
||||
\ vim.eval( 's:prefix' ) )
|
||||
catch /.*/
|
||||
echohl WarningMsg
|
||||
echom 'Exception while loading vimspector:' v:exception
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue