[Lldb-commits] [lldb] [LLDB-DAP] Send Progress update message over DAP (PR #123837)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 21 14:59:22 PST 2025
================
@@ -164,10 +168,11 @@ const ProgressEvent &ProgressEventManager::GetMostRecentEvent() const {
return m_last_update_event ? *m_last_update_event : m_start_event;
}
-void ProgressEventManager::Update(uint64_t progress_id, uint64_t completed,
- uint64_t total) {
- if (std::optional<ProgressEvent> event = ProgressEvent::Create(
- progress_id, std::nullopt, completed, total, &GetMostRecentEvent())) {
+void ProgressEventManager::Update(uint64_t progress_id, const char *message,
+ uint64_t completed, uint64_t total) {
+ if (std::optional<ProgressEvent> event =
+ ProgressEvent::Create(progress_id, StringRef(message), completed,
----------------
JDevlieghere wrote:
```suggestion
ProgressEvent::Create(progress_id, message, completed,
```
https://github.com/llvm/llvm-project/pull/123837
More information about the lldb-commits
mailing list