Skip to main content

Crate perl_lsp_feature_policy

Crate perl_lsp_feature_policy 

Source
Expand description

LSP feature policy and capability profile helpers.

This microcrate centralizes capability set selection, turning high-level profile decisions (e.g. ga-lock, production, all) into runtime BuildFlags and catalog-oriented feature IDs. It bridges FeatureProfileKind to the AdvertisedFeatures projection consumed by server startup and the initialize response.

Enums§

FeatureProfile
Known feature profiles for runtime capability selection.

Functions§

catalog_advertised_feature_ids
Return advertised feature IDs from the current profile, intersecting with the catalog so this API remains aligned to the BDD grid.
feature_ids_from_flags
Convert BuildFlags into canonical LSP feature identifiers.
flags_for_profile
Resolve BuildFlags for the profile.
flags_for_runtime
Resolve BuildFlags for runtime startup where formatting is conditional on external tooling availability.
from_str_name
Parse a user-facing feature profile name into a FeatureProfile.