Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DocumentDataExt

Index

Constructors

  • new DocumentDataExt(proxy: DocumentsMain, uri: URI, lines: string[], eol: string, languageId: string, versionId: number, isDirty: boolean): DocumentDataExt

Properties

_document: TextDocument
dirty: boolean
disposed: boolean = false
lineStarts: undefined | PrefixSumComputer
textLines: TextLine[] = ...

Accessors

  • get document(): TextDocument

Methods

  • acceptDeleteRange(range: Range): void
  • acceptInsertText(position: Position, insertText: string): void
  • acceptIsDirty(isDirty: boolean): void
  • acceptLanguageId(langId: string): void
  • dispose(): void
  • ensureLineStarts(): void
  • getText(): string
  • getTextInRange(_range: Range): string
  • getWordRangeAtPosition(_position: Position, regexp?: RegExp): undefined | Range
  • lineAt(lineOrPosition: number | Position): TextLine
  • offsetAt(position: Position): number
  • positionAt(offset: number): Position
  • save(): Promise<boolean>
  • setLineText(lineIndex: number, newValue: string): void
  • validatePosition(position: Position): Position
  • validateRange(range: Range): Range