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: Refresh variable list on set variable value response (#33078)

Anthony Eidd97a58b20eb9
diff --git a/crates/project/src/debugger/session.rs b/crates/project/src/debugger/session.rs
index 116c07d6252..8047e028af5 100644
--- a/crates/project/src/debugger/session.rs
+++ b/crates/project/src/debugger/session.rs
@@ -1323,7 +1323,6 @@ impl Session {
if event.all_threads_stopped.unwrap_or_default() || event.thread_id.is_none() {
self.thread_states.stop_all_threads();
-
self.invalidate_command_type::<StackTraceCommand>();
}
@@ -2207,7 +2206,7 @@ impl Session {
move |this, response, cx| {
let response = response.log_err()?;
this.invalidate_command_type::<VariablesCommand>();
- cx.notify();
+ cx.emit(SessionEvent::Variables);
Some(response)
},
cx,
@@ -2275,7 +2274,6 @@ impl Session {
this.push_output(event, cx);
}
};
- this.invalidate_command_type::<ScopesCommand>();
cx.notify();
})
.ok();