Don't hide sidebar when hitting cmd-1

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-05-05 15:34:36 +02:00
parent 2e6cf2011d
commit 954fabec42

View File

@ -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 {