Hierarchy

Constructors

Properties

_activeEditor: undefined | EditorWidget
_currentEditor: undefined | EditorWidget
commands: CommandService
editorCounters: Map<string, number> = ...
id: string = EditorWidgetFactory.ID
label: string = ...
navigationLocationService: NavigationLocationService
onActiveEditorChanged: Event<undefined | EditorWidget> = ...

Emit when the active editor is changed.

onActiveEditorChangedEmitter: Emitter<undefined | EditorWidget> = ...
onCurrentEditorChanged: Event<undefined | EditorWidget> = ...

Emit when the current editor is changed.

onCurrentEditorChangedEmitter: Emitter<undefined | EditorWidget> = ...
preferenceService: PreferenceService
recentlyVisibleIds: string[] = []
resolverContributions: ContributionProvider<EditorSelectionResolver>
selectionResolvers: EditorSelectionResolver[] = []

Accessors

  • get currentEditor(): undefined | EditorWidget
  • 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.

    Returns undefined | EditorWidget

Methods

  • Registers a dynamic selection resolver. The resolver is added to the sorted list of selection resolvers and can later be disposed to remove it.

    Parameters

    Returns Disposable

    A Disposable that unregisters the resolver when disposed.