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 typeUnifiedVer- Unified version enum (typically UnifiedVersion from deps-lsp)
§Arguments
handler- Ecosystem-specific handler instancedependencies- List of dependencies to processcached_versions- Previously cached version informationresolved_versions- Resolved versions from lock fileconfig- Display configuration
§Returns
Vector of inlay hints for the LSP client.