generate_inlay_hints

Function generate_inlay_hints 

Source
pub async fn generate_inlay_hints<H, UnifiedVer>(
    handler: &H,
    dependencies: &[H::UnifiedDep],
    cached_versions: &HashMap<String, UnifiedVer>,
    resolved_versions: &HashMap<String, String>,
    config: &InlayHintsConfig,
) -> Vec<InlayHint>
Expand description

Generic inlay hints generator.

Handles the common logic of fetching versions, checking cache, and creating hints. Ecosystem-specific behavior is delegated to the EcosystemHandler trait.

§Type Parameters

  • H - Ecosystem handler type
  • UnifiedVer - Unified version enum (typically UnifiedVersion from deps-lsp)

§Arguments

  • handler - Ecosystem-specific handler instance
  • dependencies - List of dependencies to process
  • cached_versions - Previously cached version information
  • resolved_versions - Resolved versions from lock file
  • config - Display configuration

§Returns

Vector of inlay hints for the LSP client.