Skip to main content

Interface: TextDocumentRef

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

Properties

languageId?

readonly optional languageId: string | string[]

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

The identifier of the language associated with this document.


locale?

readonly optional locale: string

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

The natural language locale.


text?

readonly optional text: string

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

the raw Document Text


uri

readonly uri: DocumentUri

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

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.