Hierarchy

Index

Events

onDidDispose

onDidUpdateDiff

Methods

addAction

addCommand

  • addCommand(keybinding: number, handler: ICommandHandler, context?: string): string | null

createContextKey

  • createContextKey<T>(key: string, defaultValue: T): IContextKey<T>

dispose

  • dispose(): void

focus

  • focus(): void

getDiffLineInformationForModified

getDiffLineInformationForOriginal

getDomNode

getEditorType

  • getEditorType(): string

getId

  • getId(): string

getLineChanges

getModel

getModifiedEditor

getOriginalEditor

getPosition

getSelection

getSelections

getSupportedActions

getVisibleColumnFromPosition

  • getVisibleColumnFromPosition(position: IPosition): number

hasTextFocus

  • hasTextFocus(): boolean

layout

  • Instructs the editor to remeasure its container. This method should be called when the container of the editor gets resized.

    If a dimension is passed in, the passed in value will be used.

    Parameters

    Returns void

restoreViewState

revealLine

  • revealLine(lineNumber: number, scrollType?: ScrollType): void

revealLineInCenter

  • revealLineInCenter(lineNumber: number, scrollType?: ScrollType): void

revealLineInCenterIfOutsideViewport

  • revealLineInCenterIfOutsideViewport(lineNumber: number, scrollType?: ScrollType): void

revealLineNearTop

  • revealLineNearTop(lineNumber: number, scrollType?: ScrollType): void

revealLines

  • revealLines(startLineNumber: number, endLineNumber: number, scrollType?: ScrollType): void

revealLinesInCenter

  • revealLinesInCenter(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void

revealLinesInCenterIfOutsideViewport

  • revealLinesInCenterIfOutsideViewport(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void

revealLinesNearTop

  • revealLinesNearTop(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void

revealPosition

revealPositionInCenter

revealPositionInCenterIfOutsideViewport

revealPositionNearTop

revealRange

revealRangeAtTop

revealRangeInCenter

revealRangeInCenterIfOutsideViewport

  • revealRangeInCenterIfOutsideViewport(range: IRange, scrollType?: ScrollType): void

revealRangeNearTop

revealRangeNearTopIfOutsideViewport

  • revealRangeNearTopIfOutsideViewport(range: IRange, scrollType?: ScrollType): void

saveViewState

setModel

  • Sets the current model attached to this editor. If the previous model was created by the editor via the value key in the options literal object, it will be destroyed. Otherwise, if the previous model was set via setModel, or the model key in the options literal object, the previous model will not be destroyed. It is safe to call setModel(null) to simply detach the current model from the editor.

    Parameters

    Returns void

setPosition

setSelection

  • setSelection(selection: IRange): void
  • setSelection(selection: Range): void
  • setSelection(selection: ISelection): void
  • setSelection(selection: Selection): void

setSelections

  • setSelections(selections: readonly ISelection[]): void

trigger

  • trigger(source: string | null | undefined, handlerId: string, payload: any): void
  • Directly trigger a handler or an editor action.

    Parameters

    • source: string | null | undefined

      The source of the call.

    • handlerId: string

      The id of the handler or the id of a contribution.

    • payload: any

      Extra data to be sent to the handler.

    Returns void

updateOptions