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:
parent
6d709d551c
commit
b72bc7dfbf
4 changed files with 79 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue