Skip to main content

Function: spellCheckDocumentRPC()

spellCheckDocumentRPC(document, options, settingsOrConfigFile): Promise<SpellCheckFileResultRPC>

Defined in: packages/cspell-lib/src/lib/spellCheckFile.ts:170

Spell Check a Document.

Parameters

document

Document | DocumentWithText

document to be checked. If document.text is undefined the file will be loaded

options

SpellCheckFileOptionsRPC

options to control checking

settingsOrConfigFile

CSpellSettings | ICSpellConfigFile

Returns

Promise<SpellCheckFileResultRPC>