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

    Implements

    Index

    Constructors

    Properties

    activeContext?: HTMLElement | IContext | Context
    expressions: Map<string, ContextKeyExpression> = ...
    onDidChangeEmitter: Emitter<ContextKeyChangeEvent> = ...

    Accessors

    Methods

    • Gets the context keys that are locally defined (not inherited from parent contexts) at or above the given element. This is useful for determining which context keys are specific to a particular DOM element's scope.

      Parameters

      • element: HTMLElement

        The DOM element to get local context keys for

      Returns Set<string>

      A Set of context key names that are locally defined, or an empty Set if none

    • Parameters

      • OptionalcallersContext: HTMLElement | IContext
      • service: IContextKeyService = ...

      Returns undefined | IContext