Debugger: Switch Breakpoint Anchor from left to right (#27688)
This fixes an edge case where some breakpoints would not render correctly when expanding a conflict git hunk. ## Before https://github.com/user-attachments/assets/4fd75ef6-8381-4f9e-9765-5eeb3a734df0 ## After https://github.com/user-attachments/assets/b2b49894-2dc2-42ba-8038-504a1b4c2665 Release Notes: - N/A Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
28f0ba3381
commit
55c1f9d26c
4 changed files with 93 additions and 93 deletions
|
@ -8620,7 +8620,7 @@ impl Editor {
|
|||
.snapshot(window, cx)
|
||||
.display_snapshot
|
||||
.buffer_snapshot
|
||||
.anchor_before(Point::new(cursor_position.row, 0));
|
||||
.anchor_after(Point::new(cursor_position.row, 0));
|
||||
|
||||
(
|
||||
breakpoint_position,
|
||||
|
@ -8687,7 +8687,7 @@ impl Editor {
|
|||
.snapshot(window, cx)
|
||||
.display_snapshot
|
||||
.buffer_snapshot
|
||||
.anchor_before(Point::new(cursor_position.row, 0));
|
||||
.anchor_after(Point::new(cursor_position.row, 0));
|
||||
|
||||
self.edit_breakpoint_at_anchor(
|
||||
breakpoint_position,
|
||||
|
|
|
@ -6858,7 +6858,7 @@ impl Element for EditorElement {
|
|||
.or_insert_with(|| {
|
||||
let position = snapshot.display_point_to_anchor(
|
||||
gutter_breakpoint_point,
|
||||
Bias::Left,
|
||||
Bias::Right,
|
||||
);
|
||||
let breakpoint = Breakpoint::new_standard();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue