src/vs/workbench/api/node/extHostStoragePaths.ts/mkdir
async function mkdir(dir: string): Promise<void> {
	try {
		await Promises.stat(dir);
		return;
	} catch {
		// doesn't exist, that's OK
	}

	try {
		await Promises.mkdir(dir, { recursive: true });
	} catch {
	}
}