Interface: TextDocumentFragment
Defined in: packages/cspell-types/dist/index-KJUXVo8e.d.mts:72
A fragment of a text document, representing a subset of the full document.
Since
10.4.0
Extends
TextDocument
Properties
fullText?
readonlyoptionalfullText?:string
Defined in: packages/cspell-types/dist/index-KJUXVo8e.d.mts:84
Optional full text of the document containing this fragment.
range
readonlyrange:Range
Defined in: packages/cspell-types/dist/index-KJUXVo8e.d.mts:80
The range of the text fragment within the full text of the document.
text
readonlytext:string
Defined in: packages/cspell-types/dist/index-KJUXVo8e.d.mts:76
the raw text fragment contained in this document fragment.
Overrides
TextDocument.text
url
readonlyurl:string|URL
Defined in: packages/cspell-types/dist/index-KJUXVo8e.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