extensions/git/src/model.ts/Model/scanWorkspaceFolders
class Model:	private async scanWorkspaceFolders(): Promise<void> {
		const config = workspace.getConfiguration('git');
		const autoRepositoryDetection = config.get<boolean | 'subFolders' | 'openEditors'>('autoRepositoryDetection');

		if (autoRepositoryDetection !== true && autoRepositoryDetection !== 'subFolders') {
			return;
		}

		await Promise.all((workspace.workspaceFolders || []).map(async folder => {
			const root = folder.uri.fsPath;
			const children = await new Promise<string[]>((c, e) => fs.readdir(root, (err, r) => err ? e(err) : c(r)));
			const promises = children
				.filter(child => child !== '.git')
				.map(child => this.openRepository(path.join(root, child)));

			const folderConfig = workspace.getConfiguration('git', folder.uri);
			const paths = folderConfig.get<string[]>('scanRepositories') || [];

			for (const possibleRepositoryPath of paths) {
				if (path.isAbsolute(possibleRepositoryPath)) {
					console.warn(localize('not supported', "Absolute paths not supported in 'git.scanRepositories' setting."));
					continue;
				}

				promises.push(this.openRepository(path.join(root, possibleRepositoryPath)));
			}

			await Promise.all(promises);
		}));
	}