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

    A contribution interface for handling split operations on different editor types. Implementations should handle specific editor widget types (e.g., text editors, notebook editors).

    interface SplitEditorContribution<W extends Widget = Widget> {
        canHandle(widget: Widget): number;
        split(widget: W, splitMode: DockLayout.InsertMode): Promise<W | undefined>;
    }

    Type Parameters

    • W extends Widget = Widget

      the specific widget type this contribution handles

    Implemented by

    Index
    • Determines whether this contribution can handle the split operation for the given widget.

      Parameters

      • widget: Widget

        the widget to check

      Returns number

      a priority number (higher means higher priority), or 0 if this contribution cannot handle the widget