ZIm/crates/language_tools/src
Antonio Scandurra bcbf2f2fd3
Introduce autoscroll support for elements (#10889)
This pull request introduces the new
`ElementContext::request_autoscroll(bounds)` and
`ElementContext::take_autoscroll()` methods in GPUI. These new APIs
enable container elements such as `List` to change their scroll position
if one of their children requested an autoscroll. We plan to use this in
the revamped assistant.

As a drive-by, we also:

- Renamed `Element::before_layout` to `Element::request_layout`
- Renamed `Element::after_layout` to `Element::prepaint`
- Introduced a new `List::splice_focusable` method to splice focusable
elements into the list, which enables rendering offscreen elements that
are focused.

Release Notes:

- N/A

---------

Co-authored-by: Nathan <nathan@zed.dev>
2024-04-23 15:14:22 +02:00
..
language_tools.rs Improve the look of the syntax tree view UI 2023-06-12 15:14:57 -07:00
lsp_log.rs Add preview tabs (#9125) 2024-04-11 23:09:12 +02:00
lsp_log_tests.rs Add initial support for defining language server adapters in WebAssembly-based extensions (#8645) 2024-03-01 16:00:55 -08:00
syntax_tree_view.rs Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00