================
@@ -23,41 +24,59 @@ namespace lldb_protocol::mcp {
 
 static llvm::StringLiteral kProtocolVersion = "2024-11-05";
 
+/// A Request or Response 'id'.
+using Id = std::variant<std::string, int64_t>;
+
 /// A request that expects a response.
 struct Request {
-  uint64_t id = 0;
+  Id id; // Per the spec, this must be a string or number.
----------------
ashgti wrote:

Done, also moved these changes into #153297

https://github.com/llvm/llvm-project/pull/153121
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to