Add ability to set a variable value

This works only for things which have known variablesReference, so
particularly currently only for scopes and theoretically for members.

I think this can work for watches too. will need to check.
This commit is contained in:
Ben Jackson 2021-02-24 16:17:35 +00:00
commit d8d6eb2286
3 changed files with 101 additions and 8 deletions

View file

@ -209,6 +209,13 @@ function! vimspector#ExpandVariable() abort
py3 _vimspector_session.ExpandVariable()
endfunction
function! vimspector#SetVariableValue() abort
if !s:Enabled()
return
endif
py3 _vimspector_session.SetVariableValue()
endfunction
function! vimspector#DeleteWatch() abort
if !s:Enabled()
return