Reduce frequency of workspace save (#11183)
Co-Authored-By: Mikayla <mikayla@zed.dev> Release Notes: - N/A --------- Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
4fad96b179
commit
62c12cd549
4 changed files with 42 additions and 26 deletions
|
@ -749,7 +749,7 @@ mod element {
|
|||
}
|
||||
|
||||
workspace
|
||||
.update(cx, |this, cx| this.schedule_serialize(cx))
|
||||
.update(cx, |this, cx| this.serialize_workspace(cx))
|
||||
.log_err();
|
||||
cx.stop_propagation();
|
||||
cx.refresh();
|
||||
|
@ -935,7 +935,7 @@ mod element {
|
|||
let mut borrow = flexes.lock();
|
||||
*borrow = vec![1.; borrow.len()];
|
||||
workspace
|
||||
.update(cx, |this, cx| this.schedule_serialize(cx))
|
||||
.update(cx, |this, cx| this.serialize_workspace(cx))
|
||||
.log_err();
|
||||
|
||||
cx.refresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue