|
|
@ -386,7 +386,6 @@ fn debug_parameter_prompt(
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
None,
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -638,8 +637,7 @@ pub fn dap_edit_condition(cx: &mut Context) {
|
|
|
|
let callback = Box::pin(async move {
|
|
|
|
let callback = Box::pin(async move {
|
|
|
|
let call: Callback =
|
|
|
|
let call: Callback =
|
|
|
|
Box::new(move |_editor: &mut Editor, compositor: &mut Compositor| {
|
|
|
|
Box::new(move |_editor: &mut Editor, compositor: &mut Compositor| {
|
|
|
|
let condition = breakpoint.condition;
|
|
|
|
let mut prompt = Prompt::new(
|
|
|
|
let prompt = Prompt::new(
|
|
|
|
|
|
|
|
"condition:".into(),
|
|
|
|
"condition:".into(),
|
|
|
|
None,
|
|
|
|
None,
|
|
|
|
|_input: &str| Vec::new(),
|
|
|
|
|_input: &str| Vec::new(),
|
|
|
@ -699,8 +697,10 @@ pub fn dap_edit_condition(cx: &mut Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
condition,
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
if let Some(condition) = breakpoint.condition {
|
|
|
|
|
|
|
|
prompt.insert_str(&condition)
|
|
|
|
|
|
|
|
}
|
|
|
|
compositor.push(Box::new(prompt));
|
|
|
|
compositor.push(Box::new(prompt));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
Ok(call)
|
|
|
|
Ok(call)
|
|
|
@ -714,9 +714,8 @@ pub fn dap_edit_log(cx: &mut Context) {
|
|
|
|
let callback = Box::pin(async move {
|
|
|
|
let callback = Box::pin(async move {
|
|
|
|
let call: Callback =
|
|
|
|
let call: Callback =
|
|
|
|
Box::new(move |_editor: &mut Editor, compositor: &mut Compositor| {
|
|
|
|
Box::new(move |_editor: &mut Editor, compositor: &mut Compositor| {
|
|
|
|
let log_message = breakpoint.log_message;
|
|
|
|
let mut prompt = Prompt::new(
|
|
|
|
let prompt = Prompt::new(
|
|
|
|
"log-message:".into(),
|
|
|
|
"log message: ".into(),
|
|
|
|
|
|
|
|
None,
|
|
|
|
None,
|
|
|
|
|_input: &str| Vec::new(),
|
|
|
|
|_input: &str| Vec::new(),
|
|
|
|
move |cx: &mut crate::compositor::Context,
|
|
|
|
move |cx: &mut crate::compositor::Context,
|
|
|
@ -775,8 +774,10 @@ pub fn dap_edit_log(cx: &mut Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
log_message,
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
if let Some(log_message) = breakpoint.log_message {
|
|
|
|
|
|
|
|
prompt.insert_str(&log_message);
|
|
|
|
|
|
|
|
}
|
|
|
|
compositor.push(Box::new(prompt));
|
|
|
|
compositor.push(Box::new(prompt));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
Ok(call)
|
|
|
|
Ok(call)
|
|
|
|