webview: Configure Template Gallery AI and workspace options - #2359
Open
Tsuyoshi Ushio (TsuyoshiUshio) wants to merge 3 commits into
Open
webview: Configure Template Gallery AI and workspace options#2359Tsuyoshi Ushio (TsuyoshiUshio) wants to merge 3 commits into
Tsuyoshi Ushio (TsuyoshiUshio) wants to merge 3 commits into
Conversation
Copilot started reviewing on behalf of
Tsuyoshi Ushio (TsuyoshiUshio)
July 7, 2026 23:18
View session
Contributor
There was a problem hiding this comment.
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.aiGenerationplus 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
locationin thecontinueInChatmessage 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.
Tsuyoshi Ushio (TsuyoshiUshio)
force-pushed
the
feat/template-gallery-ai-config
branch
from
August 12, 2026 20:16
6515991 to
233d6eb
Compare
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>
Tsuyoshi Ushio (TsuyoshiUshio)
force-pushed
the
feat/template-gallery-ai-config
branch
from
August 20, 2026 17:24
233d6eb to
6d859d9
Compare
Tsuyoshi Ushio (TsuyoshiUshio)
marked this pull request as ready for review
August 20, 2026 17:30
Tsuyoshi Ushio (TsuyoshiUshio)
marked this pull request as draft
August 20, 2026 17:45
Tsuyoshi Ushio (TsuyoshiUshio)
marked this pull request as ready for review
August 20, 2026 17:45
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the shared Template Gallery production-configurable for consuming extensions.
TemplateGalleryConfig.aiGenerationfor AI tab labels, descriptions, example prompts, confirmation copy, and capability bulletscreateProjectandcontinueInChat, and includes the selected project location in the chat handoffcreateProject(..., entryPoint?)argument order and appends workspace options for backward compatibility@microsoft/vscode-azext-webviewto1.3.0Release impact
A new
@microsoft/vscode-azext-webviewrelease is required before microsoft/vscode-azurefunctions#5127 can replace its local webview tarball. Recommended order:@microsoft/vscode-azext-webview@1.3.0.createProjectoverride to accept workspace options afterentryPoint, then validate and merge it.Validation
npm run lintnpm run buildnpx mocha --timeout 10000(53 passing)