33
33
from robot .errors import VariableError
34
34
from robot .output import LOGGER
35
35
from robot .running import EXECUTION_CONTEXTS , Keyword , TestCase , TestSuite
36
- from robot .utils import NormalizedDict
37
36
from robot .variables import evaluate_expression
38
37
39
38
from robotcode .core .event import event
@@ -1386,6 +1385,7 @@ def _create_variable(self, name: str, value: Any) -> Variable:
1386
1385
variables_reference = v_id ,
1387
1386
named_variables = len (value ) + 1 ,
1388
1387
indexed_variables = 0 ,
1388
+ presentation_hint = VariablePresentationHint (kind = "data" ),
1389
1389
)
1390
1390
1391
1391
if isinstance (value , Sequence ) and not isinstance (value , str ):
@@ -1398,6 +1398,7 @@ def _create_variable(self, name: str, value: Any) -> Variable:
1398
1398
variables_reference = v_id ,
1399
1399
named_variables = 1 ,
1400
1400
indexed_variables = len (value ),
1401
+ presentation_hint = VariablePresentationHint (kind = "data" ),
1401
1402
)
1402
1403
1403
1404
return Variable (name = name , value = repr (value ), type = repr (type (value )))
@@ -1420,7 +1421,7 @@ def get_variables(
1420
1421
count : Optional [int ] = None ,
1421
1422
format : Optional [ValueFormat ] = None ,
1422
1423
) -> List [Variable ]:
1423
- result : MutableMapping [str , Any ] = NormalizedDict ( ignore = "_" )
1424
+ result : MutableMapping [str , Any ] = {}
1424
1425
1425
1426
if filter is None :
1426
1427
entry = next (
@@ -1520,7 +1521,7 @@ def get_variables(
1520
1521
1521
1522
padding = len (str (len (value )))
1522
1523
1523
- for i , v in enumerate (value , start or 0 ):
1524
+ for i , v in enumerate (value [ start :] , start or 0 ):
1524
1525
result [str (i )] = self ._create_variable (str (i ).zfill (padding ), v )
1525
1526
c += 1
1526
1527
if count is not None and c >= count :
0 commit comments