Move Show Code Actions lower in editor context menu (#29556)
The 'Go to Definition' action is more commonly used. Release Notes: - N/A
This commit is contained in:
parent
d360f77796
commit
0afb980f7b
1 changed files with 7 additions and 8 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue