Don't wait to dispatch commands (#7755)
I added this when porting vim mode to gpui2 to work around life-cycle problems. Since #7647, this is no longer needed for vim mode, and causes other problems (c.f. #7748) Release Notes: - Improved command to drop fewer keystrokes
This commit is contained in:
parent
c357e37dde
commit
7956a9a547
1 changed files with 1 additions and 3 deletions
|
@ -317,9 +317,7 @@ impl PickerDelegate for CommandPaletteDelegate {
|
||||||
});
|
});
|
||||||
let action = command.action;
|
let action = command.action;
|
||||||
cx.focus(&self.previous_focus_handle);
|
cx.focus(&self.previous_focus_handle);
|
||||||
cx.window_context()
|
cx.dispatch_action(action);
|
||||||
.spawn(move |mut cx| async move { cx.update(|cx| cx.dispatch_action(action)) })
|
|
||||||
.detach_and_log_err(cx);
|
|
||||||
self.dismissed(cx);
|
self.dismissed(cx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue