Skip to main content

Interface: TextDocumentFragment

Defined in: packages/cspell-types/dist/index-eOBgsj8d.d.mts:72

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

Since​

10.5.0

Extends​

  • TextDocument

Properties​

fullText?​

readonly optional fullText?: string

Defined in: packages/cspell-types/dist/index-eOBgsj8d.d.mts:84

Optional full text of the document containing this fragment.


range​

readonly range: Range

Defined in: packages/cspell-types/dist/index-eOBgsj8d.d.mts:80

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


text​

readonly text: string

Defined in: packages/cspell-types/dist/index-eOBgsj8d.d.mts:76

the raw text fragment contained in this document fragment.

Overrides​

TextDocument.text


url​

readonly url: string | URL

Defined in: packages/cspell-types/dist/index-eOBgsj8d.d.mts:62

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