Files
oak-gpui/crates
Conrad Irwin cea26c9d10 actions3 (#3578)
- Restore impl_actions! and remove derive(Action)

Originally in gpui2 we inferred the action's namespace from the module
it was
defined in. This worked most of the time (ignoring the "remove_the_2"
hack),
but caused unintended (and mostly invisible) behavior in crates with
multiple
modules.

#3577 restored the namespace parameter to actions!, and this PR
reintroduces
`impl_actions!` to do the same for non-unit structs.

I considered trying to keep the struct-attribute API work, because it
does feel
more stylistically appropriate for rust, but two problems lead to it
feeling less good than `impl_actions!` in practice:
1. You have to repeat the namespace for each struct (and usually you're
defining them all in the same namespace)
2. You can't pass an argument to a derive macro inline, you need to use
an attribute instead.


Release Notes:

- N/A
2023-12-10 19:59:53 -07:00
..
2023-11-14 08:28:57 -05:00
WIP
2023-12-05 19:27:15 +01:00
2023-11-02 10:55:02 -07:00
2023-11-17 12:54:16 -08:00
…
2023-12-08 12:48:02 -05:00
2023-12-05 14:57:20 +01:00
2023-12-05 14:57:20 +01:00
2023-12-06 14:29:09 -08:00
2023-12-04 23:35:31 +00:00
2023-11-02 10:55:02 -07:00
2023-12-10 19:59:53 -07:00
…
2023-11-03 12:15:23 -04:00
…
2023-11-02 19:18:01 -06:00
2023-11-14 00:06:33 -08:00
2023-12-10 19:52:17 -07:00
2023-11-18 10:46:35 -08:00
2023-11-30 13:07:47 +02:00
…
2023-11-08 21:23:31 -08:00
2023-12-06 11:01:22 -05:00
2023-11-29 11:52:26 +02:00
2023-12-05 16:13:39 +02:00
2023-12-05 16:13:39 +02:00
2023-12-05 16:13:39 +02:00
WIP
2023-11-16 10:40:02 +02:00
2023-11-03 14:53:08 +01:00
2023-11-03 12:15:23 -04:00
2023-12-05 14:57:20 +01:00
2023-10-23 11:06:58 +02:00
2023-12-06 14:29:09 -08:00
2023-10-28 11:37:25 -04:00