Merge branch 'main' into taffy
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
commit
740b105330
41 changed files with 536 additions and 113 deletions
|
@ -3,7 +3,7 @@ authors = ["Nathan Sobo <nathansobo@gmail.com>"]
|
|||
description = "The fast, collaborative code editor."
|
||||
edition = "2021"
|
||||
name = "zed"
|
||||
version = "0.99.0"
|
||||
version = "0.100.0"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -654,6 +654,10 @@ fn load_embedded_fonts(app: &App) {
|
|||
let embedded_fonts = Mutex::new(Vec::new());
|
||||
smol::block_on(app.background().scoped(|scope| {
|
||||
for font_path in &font_paths {
|
||||
if !font_path.ends_with(".ttf") {
|
||||
continue;
|
||||
}
|
||||
|
||||
scope.spawn(async {
|
||||
let font_path = &*font_path;
|
||||
let font_bytes = Assets.load(font_path).unwrap().to_vec();
|
||||
|
|
|
@ -433,10 +433,10 @@ fn quit(_: &Quit, cx: &mut gpui::AppContext) {
|
|||
|
||||
// If the user cancels any save prompt, then keep the app open.
|
||||
for window in workspace_windows {
|
||||
if let Some(close) = window.update_root(&mut cx, |workspace, cx| {
|
||||
workspace.prepare_to_close(false, cx)
|
||||
if let Some(should_close) = window.update_root(&mut cx, |workspace, cx| {
|
||||
workspace.prepare_to_close(true, cx)
|
||||
}) {
|
||||
if close.await? {
|
||||
if !should_close.await? {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
@ -2327,6 +2327,11 @@ mod tests {
|
|||
.unwrap()
|
||||
.to_vec()
|
||||
.into(),
|
||||
Assets
|
||||
.load("fonts/plex/IBMPlexSans-Regular.ttf")
|
||||
.unwrap()
|
||||
.to_vec()
|
||||
.into(),
|
||||
])
|
||||
.unwrap();
|
||||
let themes = ThemeRegistry::new(Assets, cx.font_cache().clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue