src/vs/platform/extensionManagement/common/abstractExtensionManagementService.ts/InstallExtensionInProfileTask/waitAndAddExtensionToProfile
class InstallExtensionInProfileTask:	private async waitAndAddExtensionToProfile(): Promise<{ local: ILocalExtension; metadata: Metadata }> {
		const result = await this.task.waitUntilTaskIsFinished();
		const profileLocation = result.local.isApplicationScoped ? this.defaultProfileLocation : this.profileLocation;
		await this.extensionsProfileScannerService.addExtensionsToProfile([[result.local, result.metadata]], profileLocation);
		return result;
	}