Unified · Split
| @@ -65,7 +65,7 @@ pub fn init( · 64 unmodified lines | |||
| 65 | let project = workspace.read(cx).project().clone(); | 65 | let project = workspace.read(cx).project().clone(); |
| 66 | if project.read(cx).is_local() { | 66 | if project.read(cx).is_local() { |
| 67 | semantic_index.update(cx, |index, cx| { | 67 | semantic_index.update(cx, |index, cx| { |
| 68 | index.initialize_project(project, cx); | 68 | index.initialize_project(project, cx).detach_and_log_err(cx) |
| 69 | }); | 69 | }); |
| 70 | } | 70 | } |
| 71 | } | 71 | } |
| @@ -785,7 +785,7 @@ impl SemanticIndex { · 713 unmodified lines | |||
| 785 | &mut self, | 785 | &mut self, |
| 786 | project: ModelHandle<Project>, | 786 | project: ModelHandle<Project>, |
| 787 | cx: &mut ModelContext<Self>, | 787 | cx: &mut ModelContext<Self>, |
| 788 | ) { | 788 | ) -> Task<Result<()>> { |
| 789 | let worktree_scans_complete = project | 789 | let worktree_scans_complete = project |
| 790 | .read(cx) | 790 | .read(cx) |
| 791 | .worktrees(cx) | 791 | .worktrees(cx) |
| @@ -931,10 +931,8 @@ impl SemanticIndex { · 139 unmodified lines | |||
| 931 | 931 | ||
| 932 | this.projects.insert(project.downgrade(), project_state); | 932 | this.projects.insert(project.downgrade(), project_state); |
| 933 | }); | 933 | }); |
| 934 | 934 | Result::<(), _>::Ok(()) | |
| 935 | cx.background().spawn(async move { anyhow::Ok(()) }).await | ||
| 936 | }) | 935 | }) |
| 937 | .detach_and_log_err(cx) | ||
| 938 | } | 936 | } |
| 939 | 937 | ||
| 940 | pub fn index_project( | 938 | pub fn index_project( |