debugger: Mark DapLocator::create_scenario as an async function (#32680)
Paves way for locators in extensions. Release Notes: - N/A
This commit is contained in:
parent
2c491d3a66
commit
d5b8c21a75
10 changed files with 290 additions and 218 deletions
|
@ -16,11 +16,11 @@ impl DapLocator for PythonLocator {
|
|||
}
|
||||
|
||||
/// Determines whether this locator can generate debug target for given task.
|
||||
fn create_scenario(
|
||||
async fn create_scenario(
|
||||
&self,
|
||||
build_config: &TaskTemplate,
|
||||
resolved_label: &str,
|
||||
adapter: DebugAdapterName,
|
||||
adapter: &DebugAdapterName,
|
||||
) -> Option<DebugScenario> {
|
||||
if adapter.0.as_ref() != "Debugpy" {
|
||||
return None;
|
||||
|
@ -92,7 +92,7 @@ impl DapLocator for PythonLocator {
|
|||
}
|
||||
|
||||
Some(DebugScenario {
|
||||
adapter: adapter.0,
|
||||
adapter: adapter.0.clone(),
|
||||
label: resolved_label.to_string().into(),
|
||||
build: None,
|
||||
config,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue