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
|
@ -2842,11 +2842,12 @@ mod tests {
|
|||
handle_keymap_file_changes(keymap_rx, cx);
|
||||
});
|
||||
workspace
|
||||
.update(cx, |workspace, _| {
|
||||
.update(cx, |workspace, cx| {
|
||||
workspace.register_action(|_, _: &A, _cx| {});
|
||||
workspace.register_action(|_, _: &B, _cx| {});
|
||||
workspace.register_action(|_, _: &ActivatePreviousPane, _cx| {});
|
||||
workspace.register_action(|_, _: &ActivatePrevItem, _cx| {});
|
||||
cx.notify();
|
||||
})
|
||||
.unwrap();
|
||||
executor.run_until_parked();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue