Skip to content

webview: Configure Template Gallery AI and workspace options - #2359

Open
Tsuyoshi Ushio (TsuyoshiUshio) wants to merge 3 commits into
microsoft:mainfrom
TsuyoshiUshio:feat/template-gallery-ai-config
Open

webview: Configure Template Gallery AI and workspace options#2359
Tsuyoshi Ushio (TsuyoshiUshio) wants to merge 3 commits into
microsoft:mainfrom
TsuyoshiUshio:feat/template-gallery-ai-config

Conversation

@TsuyoshiUshio

@TsuyoshiUshio Tsuyoshi Ushio (TsuyoshiUshio) commented Jul 7, 2026

Copy link
Copy Markdown

Summary

Makes the shared Template Gallery production-configurable for consuming extensions.

  • Adds TemplateGalleryConfig.aiGeneration for AI tab labels, descriptions, example prompts, confirmation copy, and capability bullets
  • Adds extension-defined workspace checkbox options shared across template creation and Copilot Chat flows
  • Passes workspace option values to createProject and continueInChat, and includes the selected project location in the chat handoff
  • Preserves the existing createProject(..., entryPoint?) argument order and appends workspace options for backward compatibility
  • Exports the new public configuration types and improves workspace-option accessibility
  • Bumps @microsoft/vscode-azext-webview to 1.3.0
image image

Release impact

A new @microsoft/vscode-azext-webview release is required before microsoft/vscode-azurefunctions#5127 can replace its local webview tarball. Recommended order:

  1. Merge this PR.
  2. Publish @microsoft/vscode-azext-webview@1.3.0.
  3. Rebase Integrate Azure Functions Skills with Copilot Chat vscode-azurefunctions#5127, switch it to the published package, update its createProject override to accept workspace options after entryPoint, then validate and merge it.

Validation

  • npm run lint
  • npm run build
  • npx mocha --timeout 10000 (53 passing)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds configurable AI tab text/content for the Template Gallery webview and extends the “continue in chat” handoff to include the selected project location, enabling consuming extensions to customize the Copilot Chat UI copy and receive more context for chat initiation.

Changes:

  • Introduces TemplateGalleryConfig.aiGeneration plus a resolved/default AI config used by the webview.
  • Updates the AI generation UI to pull all labels/copy/example prompts/capabilities from configuration instead of hardcoding.
  • Includes location in the continueInChat message and updates the extension controller handler/signature accordingly.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
webview/src/webview/TemplateGallery/types.ts Adds AI config types/defaults and extends ContinueInChatMessage with location.
webview/src/webview/TemplateGallery/TemplateGalleryView.tsx Uses configured AI tab label and passes projectLocation into AiGenerateView.
webview/src/webview/TemplateGallery/TemplateGalleryConfigContext.tsx Resolves/merges aiGeneration config with defaultAiGenerationConfig for stable consumption.
webview/src/webview/TemplateGallery/components/AiGenerateView.tsx Replaces hardcoded strings with config-driven content and includes location in the chat handoff.
webview/src/extension/TemplateGalleryController.ts Updates continueInChat signature and message routing to accept location.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread webview/src/webview/TemplateGallery/components/AiGenerateView.tsx Outdated
Comment thread webview/src/webview/TemplateGallery/components/AiGenerateView.tsx
Tsuyoshi Ushio and others added 3 commits August 20, 2026 10:17
Allow Template Gallery consumers to provide AI tab labels, example prompts, confirmation copy, and capability text through TemplateGalleryConfig. Pass the selected project location with the Copilot Chat handoff message.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add reusable workspace option checkboxes to Template Gallery and pass selected values through template creation and Copilot Chat handoff messages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve the existing createProject argument order, export the new configuration types, improve workspace option accessibility, and bump the webview package to 1.3.0.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@TsuyoshiUshio Tsuyoshi Ushio (TsuyoshiUshio) changed the title Demo: configure Template Gallery AI prompt UI webview: Configure Template Gallery AI and workspace options Aug 20, 2026
@TsuyoshiUshio
Tsuyoshi Ushio (TsuyoshiUshio) marked this pull request as ready for review August 20, 2026 17:30
@TsuyoshiUshio
Tsuyoshi Ushio (TsuyoshiUshio) marked this pull request as draft August 20, 2026 17:45
@TsuyoshiUshio
Tsuyoshi Ushio (TsuyoshiUshio) marked this pull request as ready for review August 20, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants