src/vs/workbench/services/configuration/browser/configurationService.ts/WorkspaceService/copyProfileSettings
class WorkspaceService:	private async copyProfileSettings(from: URI, to: URI): Promise<void> {
		let fromContent: string | undefined;
		try {
			fromContent = (await this.fileService.readFile(from)).value.toString();
		} catch (error) {
			if ((<FileOperationError>error).fileOperationResult !== FileOperationResult.FILE_NOT_FOUND) {
				throw error;
			}
		}
		if (!fromContent) {
			return;
		}
		const allSettings = Registry.as<IConfigurationRegistry>(Extensions.Configuration).getConfigurationProperties();
		const applicationSettings = Object.keys(allSettings).filter(key => allSettings[key]?.scope === ConfigurationScope.APPLICATION);
		const toContent = updateIgnoredSettings(fromContent, '{}', applicationSettings, {});
		await this.fileService.writeFile(to, VSBuffer.fromString(toContent));
	}