-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CreateSiteCommand and CreateSiteHelper to use structured opt…
…ions and improve readability; add CreateSiteTypes for better type management
- Loading branch information
amitjoshi
committed
Nov 25, 2024
1 parent
255c97e
commit 7653622
Showing
3 changed files
with
68 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*/ | ||
|
||
import { ITelemetry } from "../../../../OneDSLoggerTelemetry/telemetry/ITelemetry"; | ||
import * as vscode from 'vscode'; | ||
|
||
export interface ICreateSiteOptions { | ||
intelligenceEndpoint: string; | ||
intelligenceApiToken: string; | ||
userPrompt: string; | ||
sessionId: string; | ||
stream: vscode.ChatResponseStream; | ||
telemetry: ITelemetry; | ||
orgId: string; | ||
envId: string; | ||
userId: string; | ||
extensionContext: vscode.ExtensionContext; | ||
} | ||
|
||
export interface IPreviewSitePagesContentOptions { | ||
// siteName: string; | ||
sitePages: any[]; | ||
Check warning on line 24 in src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts GitHub Actions / build (windows-latest)
Check warning on line 24 in src/common/chat-participants/powerpages/commands/create-site/CreateSiteTypes.ts GitHub Actions / build (macos-latest)
|
||
stream: vscode.ChatResponseStream; | ||
extensionContext: vscode.ExtensionContext; | ||
telemetry: ITelemetry; | ||
sessionId: string; | ||
orgId: string; | ||
envId: string; | ||
userId: string; | ||
} |