debugger: Use JS adapter's suggested names for child sessions (#32474)

Also introduces an extension point for other adapters to do this if it
turns out they also send this information.

Release Notes:

- N/A (JS locator is still gated)
This commit is contained in:
Cole Miller
2025-06-10 14:24:43 -04:00
committed by GitHub
parent 02dfaf7799
commit e0ca4270b4
3 changed files with 30 additions and 5 deletions
+4
View File
@@ -369,6 +369,10 @@ pub trait DebugAdapter: 'static + Send + Sync {
}
async fn dap_schema(&self) -> serde_json::Value;
fn label_for_child_session(&self, _args: &StartDebuggingRequestArguments) -> Option<String> {
None
}
}
#[cfg(any(test, feature = "test-support"))]