From 587da10d28c7940063ea74a3b6c8e56f53a81dfa Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Tue, 17 Jun 2025 02:12:03 +0300 Subject: [PATCH] Deploy code runner menu from correct display row (cherry-pick #32594) (#32825) Cherry-picked Deploy code runner menu from correct display row (#32594) This fixes a bug introduced in #32579 where the code runner menu would be deployed from the most recent cursor position instead of the row that the runner icon was rendered on. Release Notes: - N/A Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index af82a69f35b0a72002e0d6bef51102bb0b1d673d..dbdca99dd8ebeb3904e60ec8d11d3e5787384154 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -5716,7 +5716,7 @@ impl Editor { self.discard_inline_completion(false, cx); let multibuffer_point = match &action.deployed_from { - Some(CodeActionSource::Indicator(row)) => { + Some(CodeActionSource::Indicator(row)) | Some(CodeActionSource::RunMenu(row)) => { DisplayPoint::new(*row, 0).to_point(&snapshot) } _ => self.selections.newest::(cx).head(),