src/vs/workbench/services/userDataProfile/common/extensionsProfile.ts/ExtensionsProfile/getLocalExtensions
class ExtensionsProfile:	private async getLocalExtensions(): Promise<IProfileExtension[]> {
		const result: IProfileExtension[] = [];
		const installedExtensions = await this.extensionManagementService.getInstalled(undefined);
		for (const extension of installedExtensions) {
			const { identifier, preRelease } = extension;
			const enablementState = this.extensionEnablementService.getEnablementState(extension);
			const disabled = !this.extensionEnablementService.isEnabledEnablementState(enablementState);
			if (!disabled && extension.type === ExtensionType.System) {
				// skip enabled system extensions
				continue;
			}
			if (disabled && enablementState !== EnablementState.DisabledGlobally && enablementState !== EnablementState.DisabledWorkspace) {
				//skip extensions that are not disabled by user
				continue;
			}
			const profileExtension: IProfileExtension = { identifier };
			if (disabled) {
				profileExtension.disabled = true;
			}
			if (preRelease) {
				profileExtension.preRelease = true;
			}
			result.push(profileExtension);
		}
		return result;
	}