180
// note! the `value &&` part handles the `undefined`, `null`, and `false` cases
181
if (value && (typeof value === 'object')) {
182
>
const paths: IPromptSourceFolder[] = [];
config.ts
183
>
const defaultFolderPathsSet = new Set(defaultSourceFolders.map(f => f.path));
184
>
185
>
// add default source folders that are not explicitly disabled
186
>
for (const defaultFolder of defaultSourceFolders) {
187
>
if (value[defaultFolder.path] !== false) {
188
paths.push(defaultFolder);
189
}
191
>
192
>
// copy all the enabled paths to the result list
193
>
for (const [path, enabledValue] of Object.entries(value)) {
194
// we already added the default source folders, so skip them
195
if ((enabledValue === false) || defaultFolderPathsSet.has(path)) {