zed/crates/gpui
Nathan Sobo 27057fdb1b Only process a single focus effect per batch
This allows us to focus the query editor of the project search when deploying it. Previously, a complex interplay between focus events was preventing this from working in an intuitive way. What happened previously:

- We'd activate the project search, which enqueued a focus effect for the project search view
- We'd focus the query editor, which enqueued an effect
- We'd process the focus effect for the search view, which would enqueue an effect to transfer focus to the results editor
- We'd process the effect to focus the query editor
- We'd process the effect to focus the results editor

Now...

- We activate the project search pane item, enqueuing a focus effect for the project search itself
- We focus the query editor and *remove* the previous pending focus change effect
- We process the focus effect
2022-04-14 08:52:24 -06:00
..
examples Pass visible bounds to Element::dispatch_event 2022-04-07 15:10:09 +02:00
grammars/context-predicate
src Only process a single focus effect per batch 2022-04-14 08:52:24 -06:00
build.rs
Cargo.toml Introduce structured logging 2022-04-08 10:06:51 -06:00