src/vs/workbench/services/extensionManagement/common/webExtensionManagementService.ts/WebExtensionManagementService/getInstalled
class WebExtensionManagementService:	async getInstalled(type?: ExtensionType, bailOut?: boolean): Promise<ILocalExtension[]> {
		const extensions = [];
		if (type === undefined || type === ExtensionType.System) {
			const systemExtensions = await this.webExtensionsScannerService.scanSystemExtensions();
			extensions.push(...systemExtensions);
		}
		if (type === undefined || type === ExtensionType.User) {
			const userExtensions = await this.webExtensionsScannerService.scanUserExtensions({ bailOut });
			extensions.push(...userExtensions);
		}
		return Promise.all(extensions.map(e => toLocalExtension(e)));
	}