Protected
_Protected
_Protected
Readonly
commandsProtected
Readonly
editorReadonly
idReadonly
labelProtected
layoutUntil the layout has been restored, widget state is not reliable, so we ignore creation events.
Protected
Readonly
navigationReadonly
onEmit when the active editor is changed.
Protected
Readonly
onReadonly
onEmit when a new widget is created.
Protected
Readonly
onReadonly
onEmit when the current editor is changed.
Protected
Readonly
onProtected
Readonly
preferencesProtected
Readonly
preferenceProtected
Readonly
recentlyProtected
Readonly
resolverProtected
selectionProtected
Readonly
shellProtected
Readonly
stateProtected
Readonly
widgetThe active editor. If there is an active editor (one that has focus), active and current are the same.
Retrieves all open widgets that have been opened by this handler.
all open widgets for this open handler.
The most recently activated editor (which might not have the focus anymore, hence it is not active).
If no editor has focus, e.g. when a context menu is shown, the active editor is undefined
, but current might be the editor that was active before the menu popped up.
Protected
recentlyProtected
addTest 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.
Optional
options: WidgetOpenerOptionsProtected
checkCloses all widgets that have been opened by this open handler.
Optional
options: ApplicationShell.CloseOptionsthe close options that should be applied to all widgets.
a promise of all closed widgets that resolves after they have been closed.
Protected
convertOptional
options: EditorOpenerOptionsProtected
createProtected
createOptional
options: EditorOpenerOptionsProtected
doOptional
options: EditorOpenerOptionsProtected
extractTries to get an existing widget for the given uri.
the uri of the widget.
Optional
options: EditorOpenerOptionsa promise that resolves to the existing widget or undefined
if no widget for the given uri exists.
Protected
getReturn 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.
Optional
options: EditorOpenerOptionsa promise of the existing or newly created widget.
Protected
getProtected
getOptional
options: EditorOpenerOptionsProtected
getProtected
getOptional
options: EditorOpenerOptionsProtected
handleProtected
initOpen a widget for the given uri and options. Reject if the given options are not widget options or a widget cannot be opened.
the uri of the resource that should be opened.
Optional
options: EditorOpenerOptionsthe widget opener options.
promise of the widget that resolves when the widget has been opened.
Opens an editor to the side of the current editor. Defaults to opening to the right.
To modify direction, pass options with {widgetOptions: {mode: ...}}
Optional
options: EditorOpenerOptionsRegisters a dynamic selection resolver. The resolver is added to the sorted list of selection resolvers and can later be disposed to remove it.
The selection resolver to register.
A Disposable that unregisters the resolver when disposed.
Protected
removeProtected
removeProtected
resolveOptional
uri: URIProtected
revealOptional
options: EditorOpenerOptionsProtected
serializeProtected
setProtected
setProtected
tryOptional
options: EditorOpenerOptionsProtected
updateProtected
update
Generic base class for OpenHandlers that are opening a widget for a given URI.