llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Gabriele Mondada (gmondada)

<details>
<summary>Changes</summary>

Trivial change to prevent all warnings from being printed on a single line in 
the VS Code debug console.

---
Full diff: https://github.com/llvm/llvm-project/pull/173852.diff


1 Files Affected:

- (modified) lldb/tools/lldb-dap/EventHelper.cpp (+1-1) 


``````````diff
diff --git a/lldb/tools/lldb-dap/EventHelper.cpp 
b/lldb/tools/lldb-dap/EventHelper.cpp
index 01d4547e2d228..080860de50505 100644
--- a/lldb/tools/lldb-dap/EventHelper.cpp
+++ b/lldb/tools/lldb-dap/EventHelper.cpp
@@ -566,7 +566,7 @@ static void HandleDiagnosticEvent(const lldb::SBEvent 
&event, Log &log) {
     std::string type = GetStringValue(data.GetValueForKey("type"));
     std::string message = GetStringValue(data.GetValueForKey("message"));
     dap_instance->SendOutput(OutputType::Important,
-                             llvm::formatv("{0}: {1}", type, message).str());
+                             llvm::formatv("{0}: {1}\n", type, message).str());
   }
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/173852
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to