|
|
@ -503,7 +503,10 @@ impl EditorView {
|
|
|
|
if let Some(bps) = breakpoints.as_ref() {
|
|
|
|
if let Some(bps) = breakpoints.as_ref() {
|
|
|
|
if let Some(breakpoint) = bps.iter().find(|breakpoint| breakpoint.line - 1 == line)
|
|
|
|
if let Some(breakpoint) = bps.iter().find(|breakpoint| breakpoint.line - 1 == line)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let style = if breakpoint.condition.is_some() {
|
|
|
|
let style =
|
|
|
|
|
|
|
|
if breakpoint.condition.is_some() && breakpoint.log_message.is_some() {
|
|
|
|
|
|
|
|
error.add_modifier(Modifier::CROSSED_OUT)
|
|
|
|
|
|
|
|
} else if breakpoint.condition.is_some() {
|
|
|
|
error
|
|
|
|
error
|
|
|
|
} else if breakpoint.log_message.is_some() {
|
|
|
|
} else if breakpoint.log_message.is_some() {
|
|
|
|
info
|
|
|
|
info
|
|
|
@ -607,7 +610,8 @@ impl EditorView {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if let Some(condition) = &breakpoint.condition {
|
|
|
|
if let Some(condition) = &breakpoint.condition {
|
|
|
|
lines.extend(
|
|
|
|
lines.extend(
|
|
|
|
Text::styled(condition, info.add_modifier(Modifier::UNDERLINED)).lines,
|
|
|
|
Text::styled(condition, warning.add_modifier(Modifier::UNDERLINED))
|
|
|
|
|
|
|
|
.lines,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if let Some(log_message) = &breakpoint.log_message {
|
|
|
|
if let Some(log_message) = &breakpoint.log_message {
|
|
|
|