Separate watches and scopes

They are related (and share code) but make more sense separately
This commit is contained in:
Ben Jackson 2018-06-03 00:20:07 +01:00
commit fa775f4499
4 changed files with 82 additions and 43 deletions

View file

@ -277,8 +277,16 @@ class DebugSession( object ):
# Variables
vim.command( 'spl' )
vim.command( 'enew' )
vars_win = vim.current.window
# Watches
vim.command( 'spl' )
vim.command( 'enew' )
watch_win = vim.current.window
self._variablesView = variables.VariablesView( self._connection,
vim.current.buffer )
vars_win,
watch_win )
with utils.TemporaryVimOption( 'splitbelow', True ):
@ -520,7 +528,8 @@ class DebugSession( object ):
file_name ) )
def OnEvent_output( self, message ):
self._outputView.OnOutput( message[ 'body' ] )
if self._outputView:
self._outputView.OnOutput( message[ 'body' ] )
def OnEvent_stopped( self, message ):
event = message[ 'body' ]