================ @@ -30,216 +30,170 @@ namespace lldb_dap::protocol { // MARK: Base Protocol -// "Request": { -// "allOf": [ { "$ref": "#/definitions/ProtocolMessage" }, { -// "type": "object", -// "description": "A client or debug adapter initiated request.", -// "properties": { -// "type": { -// "type": "string", -// "enum": [ "request" ] -// }, -// "command": { -// "type": "string", -// "description": "The command to execute." -// }, -// "arguments": { -// "type": [ "array", "boolean", "integer", "null", "number" , "object", -// "string" ], "description": "Object containing arguments for the -// command." -// } -// }, -// "required": [ "type", "command" ] -// }] -// }, +/// A client or debug adapter initiated request. struct Request { + /// Sequence number of the message (also known as message ID). The `seq` for + /// the first message sent by a client or debug adapter is 1, and for each + /// subsequent message is 1 greater than the previous message sent by that + /// actor. `seq` can be used to order requests, responses, and events, and to + /// associate requests with their corresponding responses. For protocol + /// messages of type `request` the sequence number can be used to cancel the + /// request. int64_t seq; + + /// The command to execute. std::string command; + + /// Object containing arguments for the command. std::optional<llvm::json::Value> rawArguments; ---------------- vogelsgesang wrote:
should we name this `arguments` to be in line with the JSON-schema? (no strong feelings either way; you decide) https://github.com/llvm/llvm-project/pull/130090 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits