Merge branch 'main' into follow

This commit is contained in:
Antonio Scandurra 2022-03-22 11:19:14 +01:00
commit 016fb01ef8
9 changed files with 2 additions and 3 deletions

View file

@ -1097,9 +1097,8 @@ impl Workspace {
{ {
use project::Item as _; use project::Item as _;
if let Some(item) = project_item let entry_id = project_item.read(cx).entry_id(cx);
.read(cx) if let Some(item) = entry_id
.entry_id(cx)
.and_then(|entry_id| self.active_pane().read(cx).item_for_entry(entry_id, cx)) .and_then(|entry_id| self.active_pane().read(cx).item_for_entry(entry_id, cx))
.and_then(|item| item.downcast()) .and_then(|item| item.downcast())
{ {