Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextEditorMain

Hierarchy

  • TextEditorMain

Implements

  • Disposable

Index

Constructors

constructor

  • new TextEditorMain(id: string, model: ITextModel, editor: MonacoEditor): TextEditorMain

Properties

Private editor

editor: undefined | MonacoEditor

Private Readonly onPropertiesChangedEmitter

onPropertiesChangedEmitter: Emitter<EditorChangedPropertiesData> = ...

Private properties

properties: undefined | TextEditorPropertiesMain

Private Readonly toDispose

toDispose: DisposableCollection = ...

Protected Readonly toDisposeOnEditor

toDisposeOnEditor: DisposableCollection = ...

Accessors

onPropertiesChangedEvent

Methods

applyEdits

dispose

  • dispose(): void

getId

  • getId(): string

getModel

  • getModel(): ITextModel

getProperties

insertSnippet

revealRange

setConfiguration

setDecorations

setDecorationsFast

  • setDecorationsFast(key: string, _ranges: number[]): void

Private setEditor

  • setEditor(editor?: MonacoEditor): void

Private setIndentConfiguration

Private setProperties

setSelections

  • setSelections(selections: Selection[]): void

Private updateProperties

  • updateProperties(source?: string): void

Static Private toMonacoSelections

  • toMonacoSelections(selection: Selection): Selection