Compare commits

...

2 Commits

Author SHA1 Message Date
Jakub Konka
3a301afbc6 Enable all debug info for easier profiling 2025-11-10 22:38:40 +01:00
Jakub Konka
78add792c7 project_diff: Load buffers in the background 2025-11-10 22:01:38 +01:00
2 changed files with 10 additions and 7 deletions

View File

@@ -840,7 +840,7 @@ ui_input = { codegen-units = 1 }
zed_actions = { codegen-units = 1 }
[profile.release]
debug = "limited"
debug = "full"
lto = "thin"
codegen-units = 1

View File

@@ -37,7 +37,7 @@ use std::ops::Range;
use std::sync::Arc;
use theme::ActiveTheme;
use ui::{KeyBinding, Tooltip, prelude::*, vertical_divider};
use util::{ResultExt as _, rel_path::RelPath};
use util::rel_path::RelPath;
use workspace::{
CloseActiveItem, ItemNavHistory, SerializableItem, ToolbarItemEvent, ToolbarItemLocation,
ToolbarItemView, Workspace,
@@ -582,14 +582,17 @@ impl ProjectDiff {
})?;
for (entry, path_key) in buffers_to_load.into_iter().zip(path_keys.into_iter()) {
if let Some((buffer, diff)) = entry.load.await.log_err() {
let this = this.clone();
cx.spawn(async move |cx| {
let (buffer, diff) = entry.load.await?;
cx.update(|window, cx| {
this.update(cx, |this, cx| {
this.register_buffer(path_key, entry.file_status, buffer, diff, window, cx)
this.register_buffer(path_key, entry.file_status, buffer, diff, window, cx);
cx.notify();
})
.ok();
})?;
}
})
})
.detach();
}
this.update(cx, |this, cx| {
this.pending_scroll.take();