Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function constructSettings(doc: TextDocument): Promise {
const settings = cspell.constructSettingsForText(await fnSettings(doc), doc.getText(), doc.languageId);
const dictionary = await cspell.getDictionary(settings);
return { settings, dictionary };
}