Skip to main content

Function: spellCheckDocumentRPC()

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

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

Spell Check a Document.

Parameters

document

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

Document | DocumentWithText

options

SpellCheckFileOptionsRPC

options to control checking

settingsOrConfigFile

CSpellSettings | ICSpellConfigFile

Returns

Promise<SpellCheckFileResultRPC>