From c7ee63585366e9430a4f856c46bc56fe68ff02e2 Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Thu, 12 Jun 2025 03:22:58 -0400 Subject: [PATCH] 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 --- 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 60e7ce7ab8..78128c25ed 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -5717,7 +5717,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(),