# Use \`Workspace::toggle_sidebar_item\` when clicking on sidebar button · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/64e0c16baa67f4211e84bc3aa84cb1d09b68b322)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 64e0c16baa67f4211e84bc3aa84cb1d09b68b322

Requested commit: 64e0c16baa67f4211e84bc3aa84cb1d09b68b322

Commit: 64e0c16baa67f4211e84bc3aa84cb1d09b68b322

Tree: c2c91605c31607d8dfbe2652acfcc64d80f7379d

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Use `Workspace::toggle_sidebar_item` when clicking on sidebar button

Previously, we were mistakenly using `Sidebar::toggle_item`, which only
performs part of the toggle operation.

```

## Parents

- [cbae4e751b1fcfe5877c2b19d8c270fa728454b1](https://git.cafe/gitcafe/zed/commit/cbae4e751b1fcfe5877c2b19d8c270fa728454b1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/64e0c16baa67f4211e84bc3aa84cb1d09b68b322?format=markdown)
