175
*/
176
export function promptSourceFolders(configService: IConfigurationService, type: PromptsType): IPromptSourceFolder[] {
177
>
const value = getLocationsValue(configService, type);
config.ts
178
>
const defaultSourceFolders = getPromptFileDefaultLocations(type);
179
>
180
>
// note! the `value &&` part handles the `undefined`, `null`, and `false` cases
181
>
if (value && (typeof value === 'object')) {
182
const paths: IPromptSourceFolder[] = [];
183
const defaultFolderPathsSet = new Set(defaultSourceFolders.map(f => f.path));