Compare commits

...

4 Commits

Author SHA1 Message Date
Max Brunsfeld
0c7973d274 zed 0.89.1 2023-06-01 09:17:57 -07:00
Julia
0071a4598a Avoid blocking forever on startup if config files do not exist (#2549)
The files will still get created if the user opens their settings and
saves, otherwise everything will transparently work

Release Notes:

- Fixed an issue where a missing settings file would cause a hang on
startup
([#1590](https://github.com/zed-industries/community/issues/1590)).
2023-06-01 09:17:34 -07:00
Kirill Bulatov
d7e4544638 Remove wrong assertion 2023-06-01 17:39:55 +03:00
Max Brunsfeld
432d407539 v0.89.x preview 2023-05-31 14:44:29 -07:00
5 changed files with 14 additions and 8 deletions

2
Cargo.lock generated
View File

@@ -8777,7 +8777,7 @@ dependencies = [
[[package]]
name = "zed"
version = "0.89.0"
version = "0.89.1"
dependencies = [
"activity_indicator",
"ai",

View File

@@ -55,15 +55,22 @@ pub fn watch_config_file(
.spawn(async move {
let events = fs.watch(&path, Duration::from_millis(100)).await;
futures::pin_mut!(events);
let contents = fs.load(&path).await.unwrap_or_default();
if tx.unbounded_send(contents).is_err() {
return;
}
loop {
if events.next().await.is_none() {
break;
}
if let Ok(contents) = fs.load(&path).await {
if !tx.unbounded_send(contents).is_ok() {
break;
}
}
if events.next().await.is_none() {
break;
}
}
})
.detach();

View File

@@ -974,9 +974,8 @@ impl Workspace {
let timestamp = entry.timestamp;
match history.entry(project_path) {
hash_map::Entry::Occupied(mut entry) => {
let (old_fs_path, old_timestamp) = entry.get();
let (_, old_timestamp) = entry.get();
if &timestamp > old_timestamp {
assert_eq!(&fs_path, old_fs_path, "Inconsistent nav history");
entry.insert((fs_path, timestamp));
}
}

View File

@@ -3,7 +3,7 @@ authors = ["Nathan Sobo <nathansobo@gmail.com>"]
description = "The fast, collaborative code editor."
edition = "2021"
name = "zed"
version = "0.89.0"
version = "0.89.1"
publish = false
[lib]

View File

@@ -1 +1 @@
dev
preview