Skip to content

Conversation

@Anthony-Eid
Copy link
Contributor

@Anthony-Eid Anthony-Eid commented Oct 30, 2025

Closes #40360

This PR added heuristics to determine what variable/breakpoint list entry has the longest width when rendered. I added this in so the uniform list would correctly determine which item has the longest width and use that to calculate the scrollbar size.

The heuristic can be off if a non-mono space font is used in the UI; in most cases, it's more than accurate enough though.

Release Notes:

  • debugger: Add horizontal scroll bars to variable list, memory view, and breakpoint list
Anthony-Eid and others added 4 commits October 29, 2025 14:14
Co-authored-by: MrSubidubi <dev@bahn.sh>
This is used to determine how long a horizontal scrollbar should be in
the variable list
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 30, 2025
@Anthony-Eid Anthony-Eid enabled auto-merge (squash) October 30, 2025 18:22
@Anthony-Eid Anthony-Eid merged commit 44e5a96 into main Oct 30, 2025
51 of 55 checks passed
@Anthony-Eid Anthony-Eid deleted the debugger-horizontal-scroll branch October 30, 2025 19:43
tomatitito pushed a commit to tomatitito/zed that referenced this pull request Nov 7, 2025
…nd breakpoint list (zed-industries#41594)

Closes zed-industries#40360

This PR added heuristics to determine what variable/breakpoint list
entry has the longest width when rendered. I added this in so the
uniform list would correctly determine which item has the longest width
and use that to calculate the scrollbar size.

The heuristic can be off if a non-mono space font is used in the UI; in
most cases, it's more than accurate enough though.

Release Notes:

- debugger: Add horizontal scroll bars to variable list, memory view,
and breakpoint list

---------

Co-authored-by: MrSubidubi <dev@bahn.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

2 participants