Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextEditorExt

Hierarchy

  • TextEditorExt

Implements

  • TextEditor

Index

Constructors

constructor

Properties

Private _document

_document: DocumentDataExt

Private _options

Private _viewColumn

_viewColumn: undefined | Active | Beside | One | Two | Three | Four | Five | Six | Seven | Eight | Nine

Private disposed

disposed: boolean = false

Accessors

document

  • get document(): TextDocument
  • set document(doc: TextDocument): void

options

  • get options(): TextEditorOptions
  • set options(val: TextEditorOptions): void

selection

selections

viewColumn

  • get viewColumn(): undefined | Active | Beside | One | Two | Three | Four | Five | Six | Seven | Eight | Nine
  • set viewColumn(value: undefined | Active | Beside | One | Two | Three | Four | Five | Six | Seven | Eight | Nine): void

visibleRanges

  • get visibleRanges(): Range[]
  • set visibleRanges(val: Range[]): void

Methods

_acceptViewColumn

  • _acceptViewColumn(value: ViewColumn): void

acceptOptions

acceptSelections

  • acceptSelections(selections: Selection[]): void

acceptViewColumn

  • acceptViewColumn(val: ViewColumn): void

acceptVisibleRanges

  • acceptVisibleRanges(range: Range[]): void

Private applyEdit

dispose

  • dispose(): void

edit

  • 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>

insertSnippet

revealRange

  • revealRange(range: Range, revealType?: Default | InCenter | InCenterIfOutsideViewport | AtTop): void

Private runOnProxy

  • runOnProxy(callback: () => Promise<any>): Promise<undefined | TextEditorExt>

setDecorations

  • setDecorations(decorationType: TextEditorDecorationType, rangesOrOptions: Range[] | DecorationOptions[]): void

Private trySetSelection

  • trySetSelection(): Promise<undefined | TextEditor>