src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts/spreadGlobComponents
export function spreadGlobComponents(globArg: string): string[] {
	const components = splitGlobAware(globArg, '/');
	return components.map((_, i) => components.slice(0, i + 1).join('/'));
}