diff --git a/src/common/chat-participants/powerpages/PowerPagesChatParticipantConstants.ts b/src/common/chat-participants/powerpages/PowerPagesChatParticipantConstants.ts index 1faa46f6..4fe360ad 100644 --- a/src/common/chat-participants/powerpages/PowerPagesChatParticipantConstants.ts +++ b/src/common/chat-participants/powerpages/PowerPagesChatParticipantConstants.ts @@ -56,3 +56,4 @@ export const NL2PAGE_SCOPE = 'Page'; export const NL2SITE_REQUEST_FAILED = vscode.l10n.t('Failed to get site content from NL2Site service'); export const NL2PAGE_GENERATING_WEBPAGES = vscode.l10n.t("Generating webpages..."); export const NL2PAGE_RESPONSE_FAILED = 'Failed to get page content from NL2Page service'; +export const NL2SITE_GENERATING_SITE = vscode.l10n.t("Generating a new Power Pages site..."); diff --git a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteCommand.ts b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteCommand.ts index 7bf8fcf1..53171c8c 100644 --- a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteCommand.ts +++ b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteCommand.ts @@ -6,13 +6,14 @@ import { Command } from "../../../CommandRegistry"; import * as vscode from 'vscode'; import { createSite } from "./CreateSiteHelper"; +import { NL2SITE_GENERATING_SITE } from "../../PowerPagesChatParticipantConstants"; export class CreateSiteCommand implements Command { // eslint-disable-next-line @typescript-eslint/no-explicit-any async execute(request: any, stream: vscode.ChatResponseStream): Promise { const { prompt, intelligenceAPIEndpointInfo, intelligenceApiToken, powerPagesAgentSessionId, telemetry } = request; - stream.progress('Generating a new Power Pages site...'); + stream.progress(NL2SITE_GENERATING_SITE); try { // eslint-disable-next-line @typescript-eslint/no-unused-vars const result = await createSite( diff --git a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts index cb6f362b..ae671bde 100644 --- a/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts +++ b/src/common/chat-participants/powerpages/commands/create-site/CreateSiteHelper.ts @@ -20,7 +20,7 @@ export const createSite = async (intelligenceEndpoint: string, intelligenceApiTo }; } catch (error) { - stream.markdown(`Error: ${(error as Error).message}`); + stream.markdown(`${(error as Error).message}`); throw error; } };