From 1e4777080496cfb10023e092decd92cee0d6b07e Mon Sep 17 00:00:00 2001 From: Zhehoo Morgen <1318103969@qq.com> Date: Mon, 2 Nov 2026 12:45:55 +0000 Subject: [PATCH] debugger: Fix CodeLLDB schema validation for build-inferred configurations (#64133) ## Summary Fix the false CodeLLDB schema warnings reported in the linked issue. - Allow configurations with `build` to omit `request`. - Apply launch/attach target checks only when `request` is present, preserving target requirements for explicit requests even when `build` is provided. No debugger runtime behavior changes. Closes #64132 ## Validation I created a tiny project with debug configuration following the guidance, and turns out the build with the fix does not report issues any more. Thus I consider that the fix is working properly. ### Before: Zed reports 3 issues Image ### After: Zed reports no issues Image Release Notes: - Fixed false missing-property warnings for CodeLLDB debug configurations using build-based target inference. --------- Co-authored-by: dino --- crates/dap_adapters/src/codelldb.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"]