Use prompt buffer for Console

Like VSCode does, compbine console and stdout, and allow you to enter
commands in the console. It's all a bit janky right now and the
insertion point isn't ideal (as not all output is interactive) and some
output is asynchronous via a somewhat different channel.
This commit is contained in:
Ben Jackson 2018-06-10 18:32:16 +01:00
commit b72bc7dfbf
4 changed files with 79 additions and 17 deletions

View file

@ -89,6 +89,12 @@ function! vimspector#AddWatchPrompt( expr ) abort
call vimspector#AddWatch( a:expr )
endfunction
function! vimspector#EvaluateConsole( expr ) abort
stopinsert
setlocal nomodified
py3 _vimspector_session.EvaluateConsole( vim.eval( 'a:expr' ) )
endfunction
function! vimspector#ShowOutput( category ) abort
py3 _vimspector_session.ShowOutput( vim.eval( 'a:category' ) )
endfunction