for (const sourceFolder of validLocations) {
const isDefault = defaultPaths?.has(configuredLocation);
try {
// Handle tilde paths when userHome is provided
if (isTildePath(configuredLocation)) {
const uri = joinPath(userHome, configuredLocation.substring(2));
if (!seen.has(uri)) {