src/vs/code/electron-main/main.ts/CodeMain/initServices
class CodeMain:	private async initServices(environmentMainService: IEnvironmentMainService, userDataProfilesMainService: UserDataProfilesMainService, configurationService: ConfigurationService, stateMainService: StateMainService): Promise<void> {
		await Promises.settled<unknown>([

			// Environment service (paths)
			Promise.all<string | undefined>([
				environmentMainService.extensionsPath,
				environmentMainService.codeCachePath,
				environmentMainService.logsPath,
				userDataProfilesMainService.defaultProfile.globalStorageHome.fsPath,
				environmentMainService.workspaceStorageHome.fsPath,
				environmentMainService.localHistoryHome.fsPath,
				environmentMainService.backupHome
			].map(path => path ? FSPromises.mkdir(path, { recursive: true }) : undefined)),

			// State service
			stateMainService.init(),

			// Configuration service
			configurationService.initialize()
		]);

		userDataProfilesMainService.setEnablement(configurationService.getValue(PROFILES_ENABLEMENT_CONFIG));
	}