Actions‽ (#3349)

This PR re-implements our actions with macros instead of a blanket impl.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2023-11-16 18:18:04 -08:00
committed by GitHub
26 changed files with 420 additions and 263 deletions
+2 -2
View File
@@ -73,9 +73,9 @@ impl KeymapFile {
"Expected first item in array to be a string."
)));
};
gpui::build_action(&name, Some(data))
cx.build_action(&name, Some(data))
}
Value::String(name) => gpui::build_action(&name, None),
Value::String(name) => cx.build_action(&name, None),
Value::Null => Ok(no_action()),
_ => {
return Some(Err(anyhow!("Expected two-element array, got {action:?}")))