Theia API Documentation v1.77.0
    Preparing search index...

    PropertyDataService should be implemented to provide property data for the given selection.

    interface PropertyDataService {
        id: string;
        label?: string;
        canHandleSelection(selection: Object | undefined): number;
        providePropertyData(
            selection: Object | undefined,
        ): Promise<Object | undefined>;
    }

    Implemented by

    Index
    id: string

    A unique id for this provider.

    label?: string

    A human-readable name for this provider.

    • Test whether this provider can provide property data for the given selection. Return a nonzero number if this provider can provide; otherwise it cannot. Never reject.

      A returned value indicating a priority of this provider.

      Parameters

      • selection: Object | undefined

      Returns number

    • Provide property data for the given selection. Resolve to a property view content widget. Never reject if canHandle returns a positive number; otherwise should reject.

      Parameters

      • selection: Object | undefined

      Returns Promise<Object | undefined>