Surpress more rust-analyzer error logs (#42299)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-09 11:27:16 +00:00
committed by GitHub
parent b7d4d1791a
commit 5d08c1b35f
5 changed files with 22 additions and 13 deletions
+6 -4
View File
@@ -310,8 +310,8 @@ impl MarksState {
fn load(&mut self, cx: &mut Context<Self>) {
cx.spawn(async move |this, cx| {
let Some(workspace_id) = this.update(cx, |this, cx| this.workspace_id(cx))? else {
return Ok(());
let Some(workspace_id) = this.update(cx, |this, cx| this.workspace_id(cx)).ok()? else {
return None;
};
let (marks, paths) = cx
.background_spawn(async move {
@@ -319,10 +319,12 @@ impl MarksState {
let paths = DB.get_global_marks_paths(workspace_id)?;
anyhow::Ok((marks, paths))
})
.await?;
.await
.log_err()?;
this.update(cx, |this, cx| this.loaded(marks, paths, cx))
.ok()
})
.detach_and_log_err(cx);
.detach();
}
fn loaded(