I can not exactly mirror the Reference manual as the library
is hard-coded to one level of depth, while the docs use two
levels.
This patch takes the "lower" level of the docs ("Basic Layouts", ...),
but groups all widgets below "Std Widgets" (the "upper" level of the docs
layout). This is because we see many projects that avoid our widgets,
so I wanted those users to be able to collapse all widgets with one click.
One additional refinement in this patch is that all widgets will always be
sorted after all builtin categories and that none of the builtin Windows
will get shown in the library as those are not really editable in the live
preview anyway.
This means that, when the parent is not a layout, the widgets are
always dropped in the middle of the parent, and then one can place
place it to the right position.
In particular, for widget that expaneds to the size of their parent by
default, this does the right thing
Fixes#6098
* Show all file-local componanets (check is-exported)
* Parse all known files before generating the file list
Keep the document_cache with all the extra documents loaded around,
Use this snapshot to keep a unoptimized typeloader around, so that the preview
does not need to do another parsing run.
Move the document cache in the preview over to use the snapshot.
The Document cache is a specialized typeloader now, make it provide the
necessary APIs directly, so that we can be sure nobody will do anything
that breaks the data:-)
2024-06-12 10:15:29 +02:00
Renamed from tools/lsp/language/component_catalog.rs (Browse further)