ZIm/crates/diagnostics/src
Antonio Scandurra 6a7761e620
Merge ElementContext into WindowContext (#10979)
The new `ElementContext` was originally introduced to ensure the element
APIs could only be used inside of elements. Unfortunately, there were
many places where some of those APIs needed to be used, so
`WindowContext::with_element_context` was introduced, which defeated the
original safety purposes of having a specific context for elements.

This pull request merges `ElementContext` into `WindowContext` and adds
(debug) runtime checks to APIs that can only be used during certain
phases of element drawing.

Release Notes:

- N/A

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
2024-04-25 12:54:39 +02:00
..
diagnostics.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
items.rs Add an animation to the LSP checking indicator (#9463) 2024-03-19 10:16:18 -07:00
project_diagnostics_settings.rs Add the ability for extensions to provide language settings (#10296) 2024-04-08 19:17:12 -04:00
toolbar_controls.rs Rename IconElement to just Icon (#3974) 2024-01-09 10:11:20 -05:00