ZIm/crates/language_tools/src
Marshall Bowers 2c8ead4423
Simplify constructing tab content that is purely textual (#14695)
This PR adds a streamlined way to consistently construct tab content for
items that only have textual content in the tabs.

The `Item` trait now has a new `tab_content_text` method that can be
used to return the textual content for the tab.

The `tab_content` method now has a default implementation that—unless
overridden—will construct a `Label` out of the text. This default
implementation also takes care of setting the label color based on the
active state of the tab, something that previously had to be repeated in
each `tab_content` implementation.

The majority of our tabs are now using `tab_content_text`.

Release Notes:

- N/A
2024-07-17 20:11:05 -04:00
..
language_tools.rs Improve the look of the syntax tree view UI 2023-06-12 15:14:57 -07:00
lsp_log.rs Simplify constructing tab content that is purely textual (#14695) 2024-07-17 20:11:05 -04:00
lsp_log_tests.rs Pull app / OS info out of GPUI, add Linux information, make fallible window initialization (#12869) 2024-06-11 11:43:12 -07:00
syntax_tree_view.rs Simplify constructing tab content that is purely textual (#14695) 2024-07-17 20:11:05 -04:00