|
|
@ -388,18 +388,20 @@ impl Application {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Event::Breakpoint(events::Breakpoint { reason, breakpoint }) => match &reason[..] {
|
|
|
|
Event::Breakpoint(events::Breakpoint { reason, breakpoint }) => match &reason[..] {
|
|
|
|
"new" => {
|
|
|
|
"new" => {
|
|
|
|
self.editor
|
|
|
|
if let Some(source) = breakpoint.source {
|
|
|
|
.breakpoints
|
|
|
|
self.editor
|
|
|
|
.entry(breakpoint.source.unwrap().path.unwrap()) // TODO: no unwraps
|
|
|
|
.breakpoints
|
|
|
|
.or_default()
|
|
|
|
.entry(source.path.unwrap()) // TODO: no unwraps
|
|
|
|
.push(Breakpoint {
|
|
|
|
.or_default()
|
|
|
|
id: breakpoint.id,
|
|
|
|
.push(Breakpoint {
|
|
|
|
verified: breakpoint.verified,
|
|
|
|
id: breakpoint.id,
|
|
|
|
message: breakpoint.message,
|
|
|
|
verified: breakpoint.verified,
|
|
|
|
line: breakpoint.line.unwrap().saturating_sub(1), // TODO: no unwrap
|
|
|
|
message: breakpoint.message,
|
|
|
|
column: breakpoint.column,
|
|
|
|
line: breakpoint.line.unwrap().saturating_sub(1), // TODO: no unwrap
|
|
|
|
..Default::default()
|
|
|
|
column: breakpoint.column,
|
|
|
|
});
|
|
|
|
..Default::default()
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"changed" => {
|
|
|
|
"changed" => {
|
|
|
|
for breakpoints in self.editor.breakpoints.values_mut() {
|
|
|
|
for breakpoints in self.editor.breakpoints.values_mut() {
|
|
|
|