pub fn open_preflight_modal(
app: &mut AppState,
items: Vec<PackageItem>,
use_cache: bool,
)Expand description
What: Open preflight modal with cached dependencies and files, or trigger background resolution.
Inputs:
app: Mutable application stateitems: Packages to open preflight foruse_cache: Whether to use cached dependencies/files or trigger background resolution
Output:
- None (modifies app state directly)
Details:
- If
use_cacheis true, checks cache and uses cached data if available, otherwise triggers background resolution. - If
use_cacheis false, always triggers background resolution (used in insert mode). - Sets up all preflight resolution flags and initializes the modal state.