Eagerly index project on workspace creation if it was indexed before
Co-Authored-By: Kyle Caverly <kyle@zed.dev>
This commit is contained in:
parent
3b784668c0
commit
65e17e212d
3 changed files with 33 additions and 8 deletions
|
@ -867,7 +867,7 @@ impl ProjectSearchView {
|
|||
SemanticIndex::global(cx)
|
||||
.map(|semantic| {
|
||||
let project = self.model.read(cx).project.clone();
|
||||
semantic.update(cx, |this, cx| this.project_previously_indexed(project, cx))
|
||||
semantic.update(cx, |this, cx| this.project_previously_indexed(&project, cx))
|
||||
})
|
||||
.unwrap_or(Task::ready(Ok(false)))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue