1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #89475 from rsubtil/feature-add_message_type_to_dap

Add output type to DAP `output` events
This commit is contained in:
Rémi Verschelde
2024-03-14 22:35:25 +01:00
5 changed files with 12 additions and 11 deletions

View File

@@ -601,12 +601,12 @@ Dictionary DebugAdapterParser::ev_continued() const {
return event;
}
Dictionary DebugAdapterParser::ev_output(const String &p_message) const {
Dictionary DebugAdapterParser::ev_output(const String &p_message, RemoteDebugger::MessageType p_type) const {
Dictionary event = prepare_base_event(), body;
event["event"] = "output";
event["body"] = body;
body["category"] = "stdout";
body["category"] = (p_type == RemoteDebugger::MessageType::MESSAGE_TYPE_ERROR) ? "stderr" : "stdout";
body["output"] = p_message + "\r\n";
return event;