ZIm/crates/assistant2
Marshall Bowers c1e291bc96
gpui: Improve Global ergonomics (#11923)
This PR adds some ergonomic improvements when working with GPUI
`Global`s.

Two new traits have been added—`ReadGlobal` and `UpdateGlobal`—that
provide associated functions on any type that implements `Global` for
accessing and updating the global without needing to call the methods on
the `cx` directly (which generally involves qualifying the type).

I looked into adding `ObserveGlobal` as well, but this seems a bit
trickier to implement as the signatures of `cx.observe_global` vary
slightly between the different contexts.

Release Notes:

- N/A
2024-05-16 12:47:43 -04:00
..
evals Show annotations more like the inline assistant (#11530) 2024-05-07 19:16:35 -07:00
src gpui: Improve Global ergonomics (#11923) 2024-05-16 12:47:43 -04:00
Cargo.toml Extract http from util (#11680) 2024-05-10 15:50:20 -06:00
LICENSE-GPL New revision of the Assistant Panel (#10870) 2024-04-23 16:23:26 -07:00