Don't panic on missing mtime (#9513)
This is expected as of zed 0.128 when a new unsaved file is created Release Notes: - Fixed a panic when collaborating with newer zed versions
This commit is contained in:
@@ -7747,10 +7747,13 @@ impl Project {
|
||||
}
|
||||
|
||||
let buffer_id = BufferId::new(state.id)?;
|
||||
let buffer = cx.new_model(|_| {
|
||||
Buffer::from_proto(this.replica_id(), this.capability(), state, buffer_file)
|
||||
.unwrap()
|
||||
});
|
||||
let buffer = Buffer::from_proto(
|
||||
this.replica_id(),
|
||||
this.capability(),
|
||||
state,
|
||||
buffer_file,
|
||||
)?;
|
||||
let buffer = cx.new_model(|_| buffer);
|
||||
this.incomplete_remote_buffers
|
||||
.insert(buffer_id, Some(buffer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user