debugger: Refresh variable list on set variable value response (#33078)
Variable list wasn't notified when a set variable value request was successfully. This caused the variable list and inline values to show stale data in some cases, which this PR fixes. Release Notes: - debugger: Fix bug where setting a variable's value wouldn't update the variable list or inline values
This commit is contained in:
parent
10f0aabec6
commit
d97a58b20e
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue