Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Reorder items in the quick action bar (#34203)
Danilo Leal51c24e2010ef
diff --git a/crates/zed/src/zed/quick_action_bar.rs b/crates/zed/src/zed/quick_action_bar.rsindex c998ac10755..888101140e7 100644--- a/crates/zed/src/zed/quick_action_bar.rs+++ b/crates/zed/src/zed/quick_action_bar.rs@@ -338,52 +338,6 @@ impl Render for QuickActionBar {);}- if supports_diagnostics {- menu = menu.toggleable_entry(- "Diagnostics",- diagnostics_enabled,- IconPosition::Start,- Some(ToggleDiagnostics.boxed_clone()),- {- let editor = editor.clone();- move |window, cx| {- editor- .update(cx, |editor, cx| {- editor.toggle_diagnostics(- &ToggleDiagnostics,- window,- cx,- );- })- .ok();- }- },- );-- if supports_inline_diagnostics {- menu = menu.toggleable_entry(- "Inline Diagnostics",- inline_diagnostics_enabled,- IconPosition::Start,- Some(ToggleInlineDiagnostics.boxed_clone()),- {- let editor = editor.clone();- move |window, cx| {- editor- .update(cx, |editor, cx| {- editor.toggle_inline_diagnostics(- &ToggleInlineDiagnostics,- window,- cx,- );- })- .ok();- }- },- );- }- }-if supports_minimap {menu = menu.toggleable_entry("Minimap", minimap_enabled, IconPosition::Start, Some(editor::actions::ToggleMinimap.boxed_clone()), {let editor = editor.clone();@@ -432,6 +386,54 @@ impl Render for QuickActionBar {menu = menu.separator();+ if supports_diagnostics {+ menu = menu.toggleable_entry(+ "Diagnostics",+ diagnostics_enabled,+ IconPosition::Start,+ Some(ToggleDiagnostics.boxed_clone()),+ {+ let editor = editor.clone();+ move |window, cx| {+ editor+ .update(cx, |editor, cx| {+ editor.toggle_diagnostics(+ &ToggleDiagnostics,+ window,+ cx,+ );+ })+ .ok();+ }+ },+ );++ if supports_inline_diagnostics {+ menu = menu.toggleable_entry(+ "Inline Diagnostics",+ inline_diagnostics_enabled,+ IconPosition::Start,+ Some(ToggleInlineDiagnostics.boxed_clone()),+ {+ let editor = editor.clone();+ move |window, cx| {+ editor+ .update(cx, |editor, cx| {+ editor.toggle_inline_diagnostics(+ &ToggleInlineDiagnostics,+ window,+ cx,+ );+ })+ .ok();+ }+ },+ );+ }++ menu = menu.separator();+ }+menu = menu.toggleable_entry("Line Numbers",show_line_numbers,