Register actions globally before main

This commit is contained in:
Nathan Sobo 2023-11-07 20:58:37 -07:00
parent 80630cd4d9
commit 814e62050c
8 changed files with 33 additions and 169 deletions

View file

@ -73,9 +73,9 @@ impl KeymapFile {
"Expected first item in array to be a string."
)));
};
cx.build_action(&name, Some(data))
gpui::build_action(&name, Some(data))
}
Value::String(name) => cx.build_action(&name, None),
Value::String(name) => gpui::build_action(&name, None),
Value::Null => Ok(no_action()),
_ => {
return Some(Err(anyhow!("Expected two-element array, got {action:?}")))