aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-24 05:47:20 +0000
committerDmitry Sharshakov2021-08-24 05:47:20 +0000
commit5d3c69d5650d4e23eb9922e64bfe31ecdb9feacc (patch)
treea78ffd9afe3b20a9c3c7b2f23efd5974ac6ac128 /helix-term/src/ui
parentec599a1eac0fca7d7499f1acb7f306acbaee8cca (diff)
Support logpoints
Tested with Node (Delve and LLDB do not support logpoints)
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/editor.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index bbac3f3f..272c8ac1 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -476,6 +476,8 @@ impl EditorView {
{
if breakpoint.condition.is_some() {
surface.set_stringn(viewport.x, viewport.y + i as u16, "▲", 1, error);
+ } else if breakpoint.log_message.is_some() {
+ surface.set_stringn(viewport.x, viewport.y + i as u16, "▲", 1, info);
} else {
surface.set_stringn(viewport.x, viewport.y + i as u16, "▲", 1, warning);
}
@@ -581,6 +583,12 @@ impl EditorView {
.lines,
);
}
+ if let Some(log_message) = &breakpoint.log_message {
+ lines.extend(
+ Text::styled(log_message, info.add_modifier(Modifier::UNDERLINED))
+ .lines,
+ );
+ }
}
}
}