|
|
@ -13,7 +13,6 @@ use crate::{
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
use log::error;
|
|
|
|
use log::error;
|
|
|
|
use smallvec::smallvec;
|
|
|
|
|
|
|
|
use std::{
|
|
|
|
use std::{
|
|
|
|
io::{stdout, Write},
|
|
|
|
io::{stdout, Write},
|
|
|
|
sync::Arc,
|
|
|
|
sync::Arc,
|
|
|
@ -305,20 +304,17 @@ impl Application {
|
|
|
|
if let Some(helix_dap::StackFrame {
|
|
|
|
if let Some(helix_dap::StackFrame {
|
|
|
|
source:
|
|
|
|
source:
|
|
|
|
Some(helix_dap::Source {
|
|
|
|
Some(helix_dap::Source {
|
|
|
|
path: Some(src), ..
|
|
|
|
path: Some(ref src),
|
|
|
|
|
|
|
|
..
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
line,
|
|
|
|
line,
|
|
|
|
column,
|
|
|
|
column,
|
|
|
|
end_line,
|
|
|
|
end_line,
|
|
|
|
end_column,
|
|
|
|
end_column,
|
|
|
|
..
|
|
|
|
..
|
|
|
|
}) = &debugger.stack_pointer
|
|
|
|
}) = debugger.stack_pointer
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let path = src.clone();
|
|
|
|
let path = src.clone();
|
|
|
|
let line = *line;
|
|
|
|
|
|
|
|
let column = *column;
|
|
|
|
|
|
|
|
let end_line = *end_line;
|
|
|
|
|
|
|
|
let end_column = *end_column;
|
|
|
|
|
|
|
|
self.editor
|
|
|
|
self.editor
|
|
|
|
.open(path, helix_view::editor::Action::Replace)
|
|
|
|
.open(path, helix_view::editor::Action::Replace)
|
|
|
|
.unwrap();
|
|
|
|
.unwrap();
|
|
|
@ -333,7 +329,10 @@ impl Application {
|
|
|
|
doc.set_selection(
|
|
|
|
doc.set_selection(
|
|
|
|
view.id,
|
|
|
|
view.id,
|
|
|
|
Selection::new(
|
|
|
|
Selection::new(
|
|
|
|
smallvec![Range::new(start.min(text_end), end.min(text_end))],
|
|
|
|
helix_core::SmallVec::from_vec(vec![Range::new(
|
|
|
|
|
|
|
|
start.min(text_end),
|
|
|
|
|
|
|
|
end.min(text_end),
|
|
|
|
|
|
|
|
)]),
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|