TextDocument$Typings extension

on

Properties

eol EndOfLine
The {@link EndOfLineend of line} sequence that is predominately used in this document.
no setter
fileName String
The file system path of the associated resource. Shorthand notation for {@link TextDocument.uriTextDocument.uri.fsPath}. Independent of the uri scheme.
no setter
getText String Function([Range?])
getter/setter pair
getWordRangeAtPosition Range? Function(Position, [RegExp?])
getter/setter pair
isClosed bool
true if the document has been closed. A closed document isn't synchronized anymore and won't be re-used when the same resource is opened again.
no setter
isDirty bool
true if there are unpersisted changes.
no setter
isUntitled bool
Is this document representing an untitled file which has never been saved yet. Note that this does not mean the document will be saved to disk, use {@linkcode Uri.scheme} to figure out where a document will be {@link FileSystemProvidersaved}, e.g. file, ftp etc.
no setter
languageId String
The identifier of the language associated with this document.
no setter
lineAt → ({TextLine Function(num line) $1, TextLine Function(Position position) $2})
Overload accessor: $1, $2
no setter
lineCount num
The number of lines in this document.
no setter
offsetAt num Function(Position)
getter/setter pair
positionAt Position Function(num)
getter/setter pair
save Future Function()
getter/setter pair
uri Uri
The associated uri for this document.
no setter
validatePosition Position Function(Position)
getter/setter pair
validateRange Range Function(Range)
getter/setter pair
version num
The version number of this document (it will strictly increase after each change, including undo/redo).
no setter