Function useCodeContributions

  • Gets a snapshot of the currently registered code contributions as a read-only map. If there are no contributions for the given point, an empty map is returned.

    Note, the Hook will neither load nor activate any contributing extensions. Instead, it provides the currently registered code contributions only.

    Usually you won’t use useCodeContributions directly in your components. Instead, you provide your own custom Hook for your contribution point identified by contribPointId.

    Type Parameters

    • Value = unknown

      Type of the code contribution values in the map.

    Parameters

    • contribPointId: string

      The code contribution point identifier.

    Returns ReadonlyMap<string, Value>

    A read-only map of code contributions.

Generated using TypeDoc