Skip to main content

Interface: TextDocumentOffset

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

Extends​

Properties​

col​

col: number

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


doc​

doc: string

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


length?​

optional length?: number

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

Assumed to match text.length if the text has not been transformed.

Inherited from​

TextOffset.length


line​

line: TextOffset

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


offset​

offset: number

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

The offset into the document.

Inherited from​

TextOffset.offset


row​

row: number

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


text​

text: string

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

The text found at the offset. If the text has been transformed, then the length might not match length. Example: Original: cafe\u0301, text: café

Inherited from​

TextOffset.text


uri?​

optional uri?: string

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