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

    Generic base class for OpenHandlers that are opening a widget for a given URI.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: string = VSXExtensionEditor.ID

    The widget open handler id.

    • A widget factory for this id should be registered.
    • Subclasses should not implement WidgetFactory to avoid exposing capabilities to create a widget outside of WidgetManager.

    Emit when a new widget is created.

    onCreatedEmitter: Emitter<VSXExtensionEditor>
    widgetManager: WidgetManager

    Accessors

    • get all(): W[]

      Retrieves all open widgets that have been opened by this handler.

      Returns W[]

      all open widgets for this open handler.

    Methods

    • Tries to get an existing widget for the given uri.

      Parameters

      • uri: URI

        the uri of the widget.

      Returns Promise<undefined | VSXExtensionEditor>

      a promise that resolves to the existing widget or undefined if no widget for the given uri exists.

    • Returns void

    • Open a widget for the given uri and options. Reject if the given options are not widget options or a widget cannot be opened.

      Parameters

      • uri: URI

        the uri of the resource that should be opened.

      • Optionaloptions: WidgetOpenerOptions

        the widget opener options.

      Returns Promise<VSXExtensionEditor>

      promise of the widget that resolves when the widget has been opened.