Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TextEditorExt

Implements

  • TextEditor

Index

Constructors

Properties

_document: DocumentDataExt
_viewColumn: undefined | ViewColumn
disposed: boolean = false

Accessors

  • get document(): TextDocument
  • set document(doc: TextDocument): void
  • get options(): TextEditorOptions
  • set options(val: TextEditorOptions): void
  • get viewColumn(): undefined | ViewColumn
  • set viewColumn(value: undefined | ViewColumn): void
  • get visibleRanges(): Range[]
  • set visibleRanges(val: Range[]): void

Methods

  • _acceptViewColumn(value: ViewColumn): void
  • acceptSelections(selections: Selection[]): void
  • acceptViewColumn(val: ViewColumn): void
  • acceptVisibleRanges(range: Range[]): void
  • dispose(): void
  • edit(callback: ((editBuilder: TextEditorEdit) => void), options?: { undoStopAfter: boolean; undoStopBefore: boolean }): Promise<boolean>
  • Parameters

    • callback: ((editBuilder: TextEditorEdit) => void)
        • (editBuilder: TextEditorEdit): void
        • Parameters

          • editBuilder: TextEditorEdit

          Returns void

    • options: { undoStopAfter: boolean; undoStopBefore: boolean } = ...
      • undoStopAfter: boolean
      • undoStopBefore: boolean

    Returns Promise<boolean>

  • hide(): void
  • revealRange(range: Range, revealType?: TextEditorRevealType): void
  • runOnProxy(callback: (() => Promise<any>)): Promise<undefined | TextEditorExt>
  • setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: Range[] | DecorationOptions[]): void
  • show(column?: ViewColumn): void
  • trySetSelection(): Promise<undefined | TextEditor>