Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

debugger_ui: Clear stack frame error on successful fetch (#63977)

whitecat133170db535ccf6e
diff --git a/crates/debugger_ui/src/session/running/stack_frame_list.rs b/crates/debugger_ui/src/session/running/stack_frame_list.rs
index aa8f3483a68..89bc35e154c 100644
--- a/crates/debugger_ui/src/session/running/stack_frame_list.rs
+++ b/crates/debugger_ui/src/session/running/stack_frame_list.rs
@@ -278,6 +278,10 @@ impl StackFrameList {
}
};
+ // Clear the error on a successful fetch so a transient failure (e.g.
+ // Delve's "unknown goroutine" at boot) doesn't leave a sticky banner.
+ self.error = None;
+
let worktree_prefixes: Vec<_> = self
.workspace
.read_with(cx, |workspace, cx| {