From b23d758a7ef92071c3dd18c0fdc2e38d79e37c16 Mon Sep 17 00:00:00 2001 From: Ezio Li Date: Thu, 6 Jul 2023 16:48:47 +0800 Subject: [PATCH] Fix show qrcode in output window function (#1985) --- src/extension/exponent/exponentPlatform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/exponent/exponentPlatform.ts b/src/extension/exponent/exponentPlatform.ts index 2a0bdc5d2..ac4934715 100644 --- a/src/extension/exponent/exponentPlatform.ts +++ b/src/extension/exponent/exponentPlatform.ts @@ -4,7 +4,7 @@ import * as url from "url"; import * as vscode from "vscode"; import * as nls from "vscode-nls"; -import { generate } from "qrcode-terminal"; +import * as qrcode from "qrcode-terminal"; import { ErrorHelper } from "../../common/error/errorHelper"; import { InternalErrorCode } from "../../common/error/internalErrorCode"; import { ExpoHostType, IExponentRunOptions, PlatformType } from "../launchArgs"; @@ -131,7 +131,7 @@ export class ExponentPlatform extends GeneralPlatform { "Scan below QR code to open your app:", ); this.logger.info(outputMessage); - generate(exponentUrl, { small: true }, (qrcode: string) => + qrcode.generate(exponentUrl, { small: true }, (qrcode: string) => this.logger.info(`\n${qrcode}`), ); }