Compare commits

...

1 Commits

Author SHA1 Message Date
David Kleingeld
dfeb67f93c enjoy
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
2025-11-07 13:31:43 +01:00
4 changed files with 9 additions and 2 deletions

View File

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

View File

@@ -32,7 +32,7 @@ use project::{
},
};
use settings::{Settings, SettingsStore};
use std::any::{Any, TypeId};
use std::{any::{Any, TypeId}, time::Duration};
use std::ops::Range;
use std::sync::Arc;
use theme::ActiveTheme;
@@ -590,6 +590,10 @@ impl ProjectDiff {
.ok();
})?;
}
cx.background_executor().timer(Duration::from_millis(5)).await;
this.update(cx, |_, cx| {
cx.notify();
})?;
}
this.update(cx, |this, cx| {
this.pending_scroll.take();

View File

@@ -969,6 +969,7 @@ impl Buffer {
/// Builds a [`Buffer`] with the given underlying [`TextBuffer`], diff base, [`File`] and [`Capability`].
pub fn build(buffer: TextBuffer, file: Option<Arc<dyn File>>, capability: Capability) -> Self {
log::info!("file: {:?}", file.as_ref().map(|f| f.path()));
let saved_mtime = file.as_ref().and_then(|file| file.disk_state().mtime());
let snapshot = buffer.snapshot();
let syntax_map = Mutex::new(SyntaxMap::new(&snapshot));

View File

@@ -319,6 +319,8 @@ impl BranchDiff {
});
}
});
// let names: Vec<_> = output.iter().map(|o| o.repo_path.as_unix_str()).collect();
// eprintln!("OUTPUT IS *********************************: {names:?}");
output
}