Skip to main content

Function: spellCheckDocumentRPC()

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

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

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

default settings to use.

Returns​

Promise<SpellCheckFileResultRPC>