debugger: Fix evaluate selection running two evaluations & failing for Python and go (#44205)

Evaluate selection now acts as if the text was typed verbatim into the
console.

Closes ##33526

Release Notes:

- debugger: Fixed "evaluate selection" not behaving as if the
highlighted text was not typed verbatim into the console.
This commit is contained in:
Piotr Osiewicz
2025-12-05 11:08:04 +00:00
committed by GitHub
parent d6241b17d3
commit 35da6d000a
3 changed files with 14 additions and 3 deletions
+2
View File
@@ -2656,6 +2656,8 @@ impl Session {
this.update(cx, |this, cx| {
this.memory.clear(cx.background_executor());
this.invalidate_command_type::<ReadMemory>();
this.invalidate_command_type::<VariablesCommand>();
cx.emit(SessionEvent::Variables);
match response {
Ok(response) => {
let event = dap::OutputEvent {