Skip to main content

Interface: TextDocumentFragment

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

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

Since

10.4.0

Extends

Properties

fullText?

readonly optional fullText?: string

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

Optional full text of the document containing this fragment.


range

readonly range: Range

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

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


text

readonly text: string

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

the raw text fragment contained in this document fragment.

Overrides

TextDocument.text


url

readonly url: string | URL

Defined in: cspell-types/dist/index-ClTvqr3-.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