Revert "debugger beta: Fix bug where debug Rust main running action f… (#31743)
…ailed (#31291)"
This reverts commit aab76208b5
.
Closes #31737
I cannot repro the original issue that this commit was trying to solve
anymore.
Release Notes:
- N/A
This commit is contained in:
parent
e0fa3032ec
commit
6bb4b5fa64
2 changed files with 8 additions and 42 deletions
|
@ -874,7 +874,6 @@ impl RunningState {
|
|||
args,
|
||||
..task.resolved.clone()
|
||||
};
|
||||
|
||||
let terminal = project
|
||||
.update_in(cx, |project, window, cx| {
|
||||
project.create_terminal(
|
||||
|
@ -919,6 +918,12 @@ impl RunningState {
|
|||
};
|
||||
|
||||
if config_is_valid {
|
||||
// Ok(DebugTaskDefinition {
|
||||
// label,
|
||||
// adapter: DebugAdapterName(adapter),
|
||||
// config,
|
||||
// tcp_connection,
|
||||
// })
|
||||
} else if let Some((task, locator_name)) = build_output {
|
||||
let locator_name =
|
||||
locator_name.context("Could not find a valid locator for a build task")?;
|
||||
|
@ -937,7 +942,7 @@ impl RunningState {
|
|||
|
||||
let scenario = dap_registry
|
||||
.adapter(&adapter)
|
||||
.context(format!("{}: is not a valid adapter name", &adapter))
|
||||
.ok_or_else(|| anyhow!("{}: is not a valid adapter name", &adapter))
|
||||
.map(|adapter| adapter.config_from_zed_format(zed_config))??;
|
||||
config = scenario.config;
|
||||
Self::substitute_variables_in_config(&mut config, &task_context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue