Theia API Documentation v1.69.0
    Preparing search index...
    interface LocationMapper {
        canHandle(location: string): MaybePromise<number>;
        map(location: string): MaybePromise<string>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Should return with a positive number if the current contribution can handle the given location. The number indicates the priority of the location mapper. If it is not a positive number, it means, the contribution cannot handle the location.

      Parameters

      • location: string

      Returns MaybePromise<number>