Skip to main content

Interface: TextDocumentFragment

Defined in: packages/cspell-types/dist/index-BVAK5kk5.d.mts:71

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

Since​

11.0.0

Extends​

  • TextDocument

Properties​

fullText?​

readonly optional fullText?: string

Defined in: packages/cspell-types/dist/index-BVAK5kk5.d.mts:83

Optional full text of the document containing this fragment.


range​

readonly range: Range

Defined in: packages/cspell-types/dist/index-BVAK5kk5.d.mts:79

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


text​

readonly text: string

Defined in: packages/cspell-types/dist/index-BVAK5kk5.d.mts:75

the raw text fragment contained in this document fragment.

Overrides​

TextDocument.text


url​

readonly url: string | URL

Defined in: packages/cspell-types/dist/index-BVAK5kk5.d.mts:61

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