Skip to content

Commit

Permalink
Remove step back
Browse files Browse the repository at this point in the history
we don't support this yet
  • Loading branch information
RemcoSmitsDev committed Sep 19, 2024
1 parent e026c11 commit eae8a16
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions crates/dap/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ use anyhow::{anyhow, Context, Result};
use crate::adapters::{build_adapter, DebugAdapter};
use dap_types::{
messages::{Message, Response},
requests::{Disconnect, Request, SetBreakpoints, StepBack, Terminate, Variables},
requests::{Disconnect, Request, SetBreakpoints, Terminate, Variables},
DisconnectArguments, Scope, SetBreakpointsArguments, SetBreakpointsResponse, Source,
SourceBreakpoint, StackFrame, StepBackArguments, SteppingGranularity, TerminateArguments,
Variable, VariablesArguments,
SourceBreakpoint, StackFrame, TerminateArguments, Variable, VariablesArguments,
};
use futures::{AsyncBufRead, AsyncWrite};
use gpui::{AppContext, AsyncAppContext};
Expand Down Expand Up @@ -232,25 +231,6 @@ impl DebugAdapterClient {
self.sequence_count.fetch_add(1, Ordering::Relaxed)
}

pub async fn step_back(&self, thread_id: u64, granularity: SteppingGranularity) -> Result<()> {
// TODO debugger: make this work again
let supports_single_thread_execution_requests = true;
// let supports_single_thread_execution_requests = capabilities
// .supports_single_thread_execution_requests
// .unwrap_or_default();
let supports_stepping_granularity = true;
// let supports_stepping_granularity = capabilities
// .supports_stepping_granularity
// .unwrap_or_default();

self.request::<StepBack>(StepBackArguments {
thread_id,
granularity: supports_stepping_granularity.then(|| granularity),
single_thread: supports_single_thread_execution_requests.then(|| true),
})
.await
}

pub async fn set_breakpoints(
&self,
absolute_file_path: Arc<Path>,
Expand Down

0 comments on commit eae8a16

Please sign in to comment.