Skip to main content

Interface: TextDocumentOffset

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

Extends

Properties

col

col: number

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


doc

doc: string

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


length?

optional length: number

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

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

Inherited from

TextOffset.length


line

line: TextOffset

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


offset

offset: number

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

The offset into the document.

Inherited from

TextOffset.offset


row

row: number

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


text

text: string

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

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: cspell-types/dist/index.d.mts:20