Fix traceback when (sometimes?) using the watch window

This commit is contained in:
Ben Jackson 2020-07-09 13:08:15 +01:00
commit 81712b124f

View file

@ -230,7 +230,7 @@ class VariablesView( object ):
scope ), { scope ), {
'command': 'variables', 'command': 'variables',
'arguments': { 'arguments': {
'variablesReference': scope.scope[ 'variablesReference' ] 'variablesReference': scope.VariablesReference(),
}, },
} ) } )
@ -295,10 +295,10 @@ class VariablesView( object ):
watch.result.IsExpandedByUser() ): watch.result.IsExpandedByUser() ):
self._connection.DoRequest( partial( self._ConsumeVariables, self._connection.DoRequest( partial( self._ConsumeVariables,
self._watch.draw, self._watch.draw,
watch.result.result ), { watch.result ), {
'command': 'variables', 'command': 'variables',
'arguments': { 'arguments': {
'variablesReference': watch.result.result[ 'variablesReference' ] 'variablesReference': watch.result.VariablesReference(),
}, },
} ) } )