Allow setting the value via the api
This commit is contained in:
parent
49a9a4b367
commit
804b499286
4 changed files with 14 additions and 8 deletions
|
|
@ -209,11 +209,15 @@ function! vimspector#ExpandVariable() abort
|
|||
py3 _vimspector_session.ExpandVariable()
|
||||
endfunction
|
||||
|
||||
function! vimspector#SetVariableValue() abort
|
||||
function! vimspector#SetVariableValue( ... ) abort
|
||||
if !s:Enabled()
|
||||
return
|
||||
endif
|
||||
py3 _vimspector_session.SetVariableValue()
|
||||
if a:0 == 0
|
||||
py3 _vimspector_session.SetVariableValue()
|
||||
else
|
||||
py3 _vimspector_session.SetVariableValue( new_value = vim.eval( 'a:1' ) )
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! vimspector#DeleteWatch() abort
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue