extension: Update DAP extension API (#32448)

- DAP schemas will be stored in `debug_adapters_schemas` subdirectory in
extension work dir.
- Added Debug Config integration and such.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-06-16 16:25:32 +02:00 committed by GitHub
parent 41e9f3148c
commit 8df6ce2aac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 620 additions and 47 deletions

View file

@ -133,7 +133,7 @@ impl DebugAdapter for CodeLldbDebugAdapter {
})
}
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
json!({
"properties": {
"request": {

View file

@ -63,7 +63,7 @@ impl DebugAdapter for GdbDebugAdapter {
})
}
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
json!({
"oneOf": [
{

View file

@ -95,7 +95,7 @@ impl DebugAdapter for GoDebugAdapter {
Some(SharedString::new_static("Go").into())
}
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
// Create common properties shared between launch and attach
let common_properties = json!({
"debugAdapter": {

View file

@ -182,7 +182,7 @@ impl DebugAdapter for JsDebugAdapter {
})
}
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
json!({
"oneOf": [
{

View file

@ -110,7 +110,7 @@ impl PhpDebugAdapter {
#[async_trait(?Send)]
impl DebugAdapter for PhpDebugAdapter {
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
json!({
"properties": {
"request": {

View file

@ -257,7 +257,7 @@ impl DebugAdapter for PythonDebugAdapter {
})
}
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
json!({
"properties": {
"request": {

View file

@ -49,7 +49,7 @@ impl DebugAdapter for RubyDebugAdapter {
Ok(StartDebuggingRequestArgumentsRequest::Launch)
}
async fn dap_schema(&self) -> serde_json::Value {
fn dap_schema(&self) -> serde_json::Value {
json!({
"type": "object",
"properties": {