Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python3/vimspector/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
'bottombar_height': 10,
'disassembly_height': 20,
'variables_display_mode': 'compact', # compact/full
'max_variable_children': 200,

# For ui_mode = 'horizontal':
'sidebar_width': 50,
Expand Down
11 changes: 10 additions & 1 deletion python3/vimspector/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,16 @@ def GetMemoryReference( self ):

def _DrawVariables( self, view, variables, indent_len, is_short = False ):
assert indent_len > 0
for variable in variables:
max_variable_children = settings.Int( 'max_variable_children' )
for idx, variable in enumerate(variables):
if idx >= max_variable_children:
utils.AppendToBuffer(
view.buf,
f"{indent}... {len(variables) - max_variable_children} more",
hl = 'WarningMsg'
)
break

text = ''
# We borrow 1 space of indent to draw the change marker
indent = ' ' * ( indent_len - 1 )
Expand Down
Loading