Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async fetchSettingsFromVSCode(uri?: string): Promise {
const configs = await this.fetchVSCodeConfiguration(uri || '');
const [ cSpell, search ] = configs;
const { exclude = {} } = search;
const { ignorePaths = [] } = cSpell;
const cSpellConfigSettings: CSpellUserSettings = {
...cSpell,
id: 'VSCode-Config',
ignorePaths: ignorePaths.concat(CSpell.ExclusionHelper.extractGlobsFromExcludeFilesGlobMap(exclude)),
};
return cSpellConfigSettings;
}