debugger: Fix typing in active buffer resulting a jump to an active debug line (#27439)

/cc @iamnbutler 

Release Notes:

- N/A

---------

Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
Piotr Osiewicz
2025-03-25 17:08:36 +00:00
committed by GitHub
co-authored by Anthony Eid
parent f9212a001e
commit 2fe2028e20
5 changed files with 42 additions and 30 deletions
+2 -3
View File
@@ -12644,15 +12644,14 @@ impl Editor {
let start = snapshot.buffer_snapshot.anchor_before(start);
let end = snapshot.buffer_snapshot.anchor_before(end);
self.clear_row_highlights::<T>();
self.highlight_rows::<T>(
start..end,
highlight_color
.unwrap_or_else(|| cx.theme().colors().editor_highlighted_line_background),
true,
false,
cx,
);
self.request_autoscroll(Autoscroll::center(), cx);
self.request_autoscroll(Autoscroll::center().for_anchor(start), cx);
}
pub fn go_to_definition(