adding the first test!

This commit is contained in:
dsych 2021-01-15 00:35:24 -05:00 committed by Ben Jackson
commit 789377eab4
3 changed files with 68 additions and 0 deletions

View file

@ -702,6 +702,7 @@ class DebugSession( object ):
'variables': utils.WindowID( vars_window, self._uiTab ),
'watches': utils.WindowID( watch_window, self._uiTab ),
'output': utils.WindowID( output_window, self._uiTab ),
'eval': None # this is going to be updated every time eval popup is opened
}
with utils.RestoreCursorPosition():
with utils.RestoreCurrentWindow():

View file

@ -307,6 +307,7 @@ class VariablesView( object ):
def _CleanUpTooltip( self ) :
# remove reference to old tooltip window
self._variable_eval_view = None
vim.vars[ 'vimspector_session_windows' ][ 'eval' ] = None
return ''
def VariableEval( self, frame, expression, is_hover ):
@ -323,6 +324,8 @@ class VariablesView( object ):
watch.result.Update( message[ 'body' ] )
float_win_id = utils.DisplayBalloon( self._is_term, [], is_hover )
# record the global eval window id
vim.vars[ 'vimspector_session_windows' ][ 'eval' ] = int( float_win_id )
float_buf_nr = int( vim.eval( "winbufnr({})".format( float_win_id ) ) )
# since vim's popup cant be focused there is no way