debugger: Clear active debug line on thread continued (#29811)
I also moved the breakpoint store to session from local mode, because both remote/local modes will need the ability to remove active debug lines. Release Notes: - N/A
This commit is contained in:
parent
e6b0d8e48b
commit
da98e300cc
5 changed files with 65 additions and 40 deletions
|
@ -36,12 +36,7 @@ pub fn intercept_debug_sessions<T: Fn(&Arc<DebugAdapterClient>) + 'static>(
|
|||
|
||||
fn register_default_handlers(session: &Session, client: &Arc<DebugAdapterClient>, cx: &mut App) {
|
||||
client.on_request::<dap::requests::Initialize, _>(move |_, _| Ok(Default::default()));
|
||||
let paths = session
|
||||
.as_local()
|
||||
.unwrap()
|
||||
.breakpoint_store
|
||||
.read(cx)
|
||||
.breakpoint_paths();
|
||||
let paths = session.breakpoint_store.read(cx).breakpoint_paths();
|
||||
|
||||
client.on_request::<dap::requests::SetBreakpoints, _>(move |_, args| {
|
||||
let p = Arc::from(Path::new(&args.source.path.unwrap()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue