src/vs/workbench/services/userDataProfile/browser/extensionsResource.ts/ExtensionsResource/getLocalExtensions
class ExtensionsResource:	async getLocalExtensions(profile: IUserDataProfile): Promise<IProfileExtension[]> {
		return this.withProfileScopedServices(profile, async (extensionEnablementService) => {
			const result: Array<IProfileExtension & { displayName?: string }> = [];
			const installedExtensions = await this.extensionManagementService.getInstalled(undefined, profile.extensionsResource);
			const disabledExtensions = extensionEnablementService.getDisabledExtensions();
			for (const extension of installedExtensions) {
				const { identifier, preRelease } = extension;
				const disabled = disabledExtensions.some(disabledExtension => areSameExtensions(disabledExtension, identifier));
				if (extension.type === ExtensionType.System && !disabled) {
					// skip enabled system extensions
					continue;
				}
				if (extension.type === ExtensionType.User) {
					if (!extension.identifier.uuid) {
						// skip user extensions without uuid
						continue;
					}
					if (disabled && !extension.isBuiltin) {
						// skip user disabled extensions
						continue;
					}
				}
				const profileExtension: IProfileExtension = { identifier, displayName: extension.manifest.displayName };
				if (disabled) {
					profileExtension.disabled = true;
				}
				if (preRelease) {
					profileExtension.preRelease = true;
				}
				result.push(profileExtension);
			}
			return result;
		});
	}