ReadonlyidProtectednotebookReadonlyonEmit when a new widget is created.
Protected ReadonlyonProtected ReadonlypreferenceProtected ReadonlyshellProtected ReadonlywidgetProtected ReadonlywindowRetrieves all open widgets that have been opened by this handler.
all open widgets for this open handler.
ProtectedcalculateTest whether this handler can open the given URI for given options. Return a nonzero number if this handler can open; otherwise it cannot. Never reject.
A returned value indicating a priority of this handler.
Optionaloptions: NotebookWidgetOpenerOptionsOptionalnotebookType: NotebookTypeDescriptorOptionaldefaultHandler: stringCloses all widgets that have been opened by this open handler.
Optionaloptions: ApplicationShell.CloseOptions
the close options that should be applied to all widgets.
a promise of all closed widgets that resolves after they have been closed.
ProtectedcreateOptionaloptions: NotebookWidgetOpenerOptionsProtecteddoOptionaloptions: WidgetOpenerOptionsProtectedfindTries to get an existing widget for the given uri.
the uri of the widget.
a promise that resolves to the existing widget or undefined if no widget for the given uri exists.
ProtectedgetThe options to add a widget with if the opener options don't specify any: widgets are added to the main area, unless the user works in a secondary window. Then widgets that can be moved to secondary windows are added there, next to the current widget, like editors are opened in the active editor group in VS Code.
Optionalwidget: NotebookEditorWidget
the widget to add, if known already
Return an existing widget for the given uri or creates a new one.
It does not open a widget, use WidgetOpenHandler#open instead.
uri of the widget.
a promise of the existing or newly created widget.
ProtectedgetOptionaloptions: WidgetOpenerOptionsProtectedgetOptionaloptions: WidgetOpenerOptionsProtectedinitProtectedmatchesOverride for better options typing
Optionaloptions: NotebookWidgetOpenerOptionsOpens a notebook to the side of the current notebook. Uses timestamp to ensure unique widget IDs for multiple instances without needing to track state.
Optionaloptions: NotebookWidgetOpenerOptionsProtectedselectorProtectedserializeProtectedtryOptionaloptions: WidgetOpenerOptions
Generic base class for OpenHandlers that are opening a widget for a given URI.