Skip to main content

provide_file_decoration

Function provide_file_decoration 

Source
pub(super) async fn provide_file_decoration(
    environment: &MountainEnvironment,
    resource_uri: Url,
) -> Result<Option<Value>, CommonError>
Expand description

Provide a file decoration (badge, tooltip, colour) for the given URI. Called by Mountain’s FileDecorationProvider when the file explorer or source-control tree requests decoration state for a resource URI. Cocoon’s $provideFileDecoration handler (added in session Trench) asks the registered extension provider and returns the result.