Skip to main content

Function: getDictionary()

getDictionary(settings): Promise<SpellingDictionaryCollection>

Defined in: packages/cspell-lib/src/lib/getDictionary.ts:14

Load a dictionary collection defined by the settings.

The collection can be shared with other callers. Don't change its list of dictionaries.

Parameters​

settings​

CSpellSettings

that defines the dictionaries and the ones to load.

Returns​

Promise<SpellingDictionaryCollection>

a dictionary collection that represents all the enabled dictionaries.