Minor improvements to console usage

Display failures and stop adding random text which makes the (very
useful) CodeLLDB interface look messy
This commit is contained in:
Ben Jackson 2020-10-10 16:04:55 +01:00
commit 1b9763a4fc
4 changed files with 63 additions and 10 deletions

View file

@ -183,7 +183,7 @@ function! vimspector#Evaluate( expr ) abort
return
endif
py3 _vimspector_session.ShowOutput( 'Console' )
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ) )
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ), True )
endfunction
function! vimspector#EvaluateConsole( expr ) abort
@ -192,7 +192,7 @@ function! vimspector#EvaluateConsole( expr ) abort
endif
stopinsert
setlocal nomodified
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ) )
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ), False )
endfunction
function! vimspector#ShowOutput( ... ) abort