ITADN

fix: wrap restart config in arguments field per DAP spec

#1576Pull Requestfredrikaverpil 创建于 2025-12-29
F
fredrikaverpilcommented
## Problem The `restart` request sends the configuration directly as the request body, but according to the [DAP specification](https://microsoft.github.io/debug-adapter-protocol/specification), it should be wrapped in an `arguments` field: ```typescript interface RestartArguments { /** * The latest version of the `launch` or `attach` configuration. */ arguments?: LaunchRequestArguments | AttachRequestArguments; } ``` This causes issues with debug adapters like Delve (Go debugger) that expect the spec-compliant format. When restarting a debug session, the restart request completes successfully but the debuggee doesn't actually restart. ## Solution Wrap the config in `{ arguments = config }` when sending the restart request, matching the DAP specification. ## References - Issue: #1575 - DAP specification: https://microsoft.github.io/debug-adapter-protocol/specification (search for `RestartArguments`) - Delve restart issue: https://github.com/go-delve/delve/issues/4102
合并状态:未合并 关闭于 2026-01-02 2 条评论