Class WidgetLSPAdapterTracker<T>

A class that keeps track of widget adapter instances.

T - The type of widget being tracked. Defaults to WidgetLSPAdapter.

Type Parameters

Implements

Constructors

Accessors

Methods

  • Add a new adapter to the tracker.

    Parameters

    • adapter: T

      The adapter being added.

      The newly added adapter becomes the current adapter unless the shell already had a DocumentWidget as the activeWidget.

    Returns void

  • Find the first adapter in the tracker that satisfies a filter function.

    Parameters

    • fn: (adapter: T) => boolean

      The filter function to call on each adapter.

      If no adapter is found, the value returned is undefined.

    Returns undefined | T