Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TextEditor

Hierarchy

Index

Properties

cursor: Position
isReadonly: boolean
node: HTMLElement
onCursorPositionChanged: Event<Position>
onDocumentContentChanged: Event<TextDocumentChangeEvent>
onEncodingChanged: Event<string>
onFocusChanged: Event<boolean>
onLanguageChanged: Event<string>
onMouseDown: Event<EditorMouseEvent>
onScrollChanged: Event<void>
onSelectionChanged: Event<Range>
selection: Range
uri: URI

Methods

  • blur(): void
  • detectLanguage(): void
  • executeEdits(edits: TextEdit[]): boolean
  • focus(): void
  • getEncoding(): string
  • getLinesDecorations(startLineNumber: number, endLineNumber: number): EditorDecoration[]
  • Gets all the decorations for the lines between startLineNumber and endLineNumber as an array.

    Parameters

    • startLineNumber: number

      The start line number.

    • endLineNumber: number

      The end line number.

    Returns EditorDecoration[]

    An array with the decorations.

  • getVisibleColumn(position: Position): number
  • getVisibleRanges(): Range[]
  • isFocused(): boolean
  • refresh(): void
  • resizeToFit(): void
  • restoreViewState(state: object): void
  • setLanguage(languageId: string): void
  • storeViewState(): object