Theia API Documentation v1.65.0
    Preparing search index...
    interface Options<TChangeSummary> {
        createChangeSummary?: () => TChangeSummary;
        willHandleChange?: <T, TChange>(
            context: ChangeContext<T, TChange>,
            changeSummary: undefined | TChangeSummary,
        ) => boolean;
    }

    Type Parameters

    • TChangeSummary
    Index

    Properties

    createChangeSummary?: () => TChangeSummary

    Creates a change summary that can collect the changes reported by the observed dependencies to willHandleChange.

    willHandleChange?: <T, TChange>(
        context: ChangeContext<T, TChange>,
        changeSummary: undefined | TChangeSummary,
    ) => boolean

    Handles a change reported by an observed dependency, e.g. by adding it to the changeSummary. Returns true if the reported change should be reacted to, and false if it should be ignored.