Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

debugger: Fix CodeLLDB schema validation for build-inferred configurations (#64133)

Zhehoo Morgen1e4777080496
diff --git a/crates/dap_adapters/src/codelldb.rs b/crates/dap_adapters/src/codelldb.rs
index e4c7f3dce7b..1437c126385 100644
--- a/crates/dap_adapters/src/codelldb.rs
+++ b/crates/dap_adapters/src/codelldb.rs
@@ -280,10 +280,14 @@ impl DebugAdapter for CodeLldbDebugAdapter {
"default": false
}
},
- "required": ["request"],
+ "anyOf": [
+ { "required": ["request"] },
+ { "required": ["build"] }
+ ],
"allOf": [
{
"if": {
+ "required": ["request"],
"properties": {
"request": {
"enum": ["launch"]
@@ -303,6 +307,7 @@ impl DebugAdapter for CodeLldbDebugAdapter {
},
{
"if": {
+ "required": ["request"],
"properties": {
"request": {
"enum": ["attach"]