open_preflight_modal

Function open_preflight_modal 

Source
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 state
  • items: Packages to open preflight for
  • use_cache: Whether to use cached dependencies/files or trigger background resolution

Output:

  • None (modifies app state directly)

Details:

  • If use_cache is true, checks cache and uses cached data if available, otherwise triggers background resolution.
  • If use_cache is false, always triggers background resolution (used in insert mode).
  • Sets up all preflight resolution flags and initializes the modal state.