From 0afb980f7bca40ca400147bc39a842b109c62116 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 28 Apr 2025 11:42:07 -0700 Subject: [PATCH] Move Show Code Actions lower in editor context menu (#29556) The 'Go to Definition' action is more commonly used. Release Notes: - N/A --- crates/editor/src/mouse_context_menu.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/editor/src/mouse_context_menu.rs b/crates/editor/src/mouse_context_menu.rs index a924be054580f24280b3190cdbaf72a8f0e24c6d..6630faa02eaa7a3b3861ac77d974149a1a5d7047 100644 --- a/crates/editor/src/mouse_context_menu.rs +++ b/crates/editor/src/mouse_context_menu.rs @@ -207,14 +207,6 @@ pub fn deploy_context_menu( ui::ContextMenu::build(window, cx, |menu, _window, _cx| { let builder = menu .on_blur_subscription(Subscription::new(|| {})) - .action( - "Show Code Actions", - Box::new(ToggleCodeActions { - deployed_from_indicator: None, - quick_launch: false, - }), - ) - .separator() .when(evaluate_selection && has_selections, |builder| { builder .action("Evaluate Selection", Box::new(DebuggerEvaluateSelectedText)) @@ -231,6 +223,13 @@ pub fn deploy_context_menu( .when(has_selections, |cx| { cx.action("Format Selections", Box::new(FormatSelections)) }) + .action( + "Show Code Actions", + Box::new(ToggleCodeActions { + deployed_from_indicator: None, + quick_launch: false, + }), + ) .separator() .action("Cut", Box::new(Cut)) .action("Copy", Box::new(Copy))