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:
Conrad Irwin 2024-04-29 20:27:01 -06:00 committed by GitHub
parent 4fad96b179
commit 62c12cd549
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 26 deletions

View file

@ -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();