Skip to main content

Interface: TextDocumentRef

Defined in: packages/cspell-lib/src/lib/Models/TextDocument.ts:35

Properties

languageId?

readonly optional languageId: string | string[]

Defined in: packages/cspell-lib/src/lib/Models/TextDocument.ts:46

The identifier of the language associated with this document.


locale?

readonly optional locale: string

Defined in: packages/cspell-lib/src/lib/Models/TextDocument.ts:56

The natural language locale.


text?

readonly optional text: string

Defined in: packages/cspell-lib/src/lib/Models/TextDocument.ts:51

the raw Document Text


uri

readonly uri: DocumentUri

Defined in: packages/cspell-lib/src/lib/Models/TextDocument.ts:41

The associated URI for this document. Most documents have the file-scheme, indicating that they represent files on disk. However, some documents may have other schemes indicating that they are not available on disk.