Skip to main content

Interface: TextDocumentFragment

Defined in: Parser/types.ts:75

A fragment of a text document, representing a subset of the full document.

Since​

10.5.0

Extends​

Properties​

fullText?​

readonly optional fullText?: string

Defined in: Parser/types.ts:89

Optional full text of the document containing this fragment.


range​

readonly range: Range

Defined in: Parser/types.ts:84

The range of the text fragment within the full text of the document.


text​

readonly text: string

Defined in: Parser/types.ts:79

the raw text fragment contained in this document fragment.

Overrides​

TextDocument.text


url​

readonly url: string | URL

Defined in: Parser/types.ts:63

The associated URL for this document. Most documents have the file: protocol, indicating that they represent files on disk. However, some documents may have other protocols indicating that they are not available on disk.

Inherited from​

TextDocument.url