mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
wip
This commit is contained in:
parent
09f5796537
commit
8b85903116
@ -381,6 +381,7 @@ pub async fn handle_debugger_message(&mut self, payload: helix_dap::Payload) {
|
||||
Some(i) => {
|
||||
let item = debugger.breakpoints.get_mut(i).unwrap();
|
||||
item.verified = breakpoint.verified;
|
||||
// TODO: wasteful clones
|
||||
item.message = breakpoint.message.or_else(|| item.message.clone());
|
||||
item.source = breakpoint.source.or_else(|| item.source.clone());
|
||||
item.line = breakpoint.line.or(item.line);
|
||||
|
@ -499,6 +499,8 @@ pub fn render_gutter(
|
||||
|
||||
let selected = cursors.contains(&line);
|
||||
|
||||
// TODO: debugger should translate received breakpoints to 0-indexing
|
||||
|
||||
if let Some(user) = breakpoints.as_ref() {
|
||||
let debugger_breakpoint = if let Some(debugger) = dbg_breakpoints.as_ref() {
|
||||
debugger.iter().find(|breakpoint| {
|
||||
|
Loading…
Reference in New Issue
Block a user