From 954fabec426d7adea0cca53b9476eb6ed2d2addb Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 5 May 2022 15:34:36 +0200 Subject: [PATCH] Don't hide sidebar when hitting `cmd-1` Co-Authored-By: Nathan Sobo --- crates/workspace/src/workspace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 499ae037c563eb7cb8618ee9b62e1c79a7e49875..b23710834dfd38f00edcaa3ae7cf454613b79d6b 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -1065,7 +1065,7 @@ impl Workspace { Side::Right => &mut self.right_sidebar, }; let active_item = sidebar.update(cx, |sidebar, cx| { - sidebar.toggle_item(action.item_index, cx); + sidebar.activate_item(action.item_index, cx); sidebar.active_item().cloned() }); if let Some(active_item) = active_item {