Add GHCP fix action for publish dialog errors#21455
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Copilot Chat recovery path from Schema Designer’s publish dialog when publish/report errors occur, by surfacing an “Ask GitHub Copilot to Fix” action and passing error context as a prompt override into the existing mssql.openCopilotChatFromUi command.
Changes:
- Adds a new publish-dialog error-state button that opens Copilot Chat with a generated prompt containing the current error details.
- Extends
CopilotChat.OpenFromUiArgs/openCopilotChatFromUito accept an optional prompt override. - Adds unit tests for the new prompt-building helpers, button behavior, and main controller prompt override handling.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| localization/xliff/vscode-mssql.xlf | Adds new localizable strings for the new publish-dialog Copilot action + tooltip |
| extensions/mssql/l10n/bundle.l10n.json | Adds runtime l10n entries for the new UI strings |
| extensions/mssql/src/reactviews/common/locConstants.ts | Exposes new Schema Designer localized strings |
| extensions/mssql/src/reactviews/pages/SchemaDesigner/toolbar/publishChangesDialogButton.tsx | Adds visibility logic + button to open Copilot Chat with error-context prompt |
| extensions/mssql/src/reactviews/pages/SchemaDesigner/toolbar/publishChangesDialogPrompts.ts | Introduces prompt template + labels/fallback text for error-context prompt |
| extensions/mssql/src/sharedInterfaces/copilotChat.ts | Extends EntryPoint and adds optional prompt to OpenFromUiArgs |
| extensions/mssql/src/controllers/mainController.ts | Uses prompt override (when provided) when opening Copilot Chat |
| extensions/mssql/test/unit/publishChangesDialogButton.test.ts | Adds unit coverage for helpers + the new button click behavior |
| extensions/mssql/test/unit/mainController.test.ts | Adds unit coverage for prompt override behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR Changes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21455 +/- ##
==========================================
- Coverage 72.84% 72.46% -0.39%
==========================================
Files 325 330 +5
Lines 96454 97758 +1304
Branches 5411 5427 +16
==========================================
+ Hits 70262 70839 +577
- Misses 26192 26919 +727
🚀 New features to boost your workflow:
|
aasimkhan30
approved these changes
Mar 5, 2026
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.
Description
Adds a GHCP-assisted recovery path in Schema Designer publish flow.
ReportError,PublishError).mssql.openCopilotChatFromUiwith current error details.Code Changes Checklist
npm run test)Reviewers: Please read our reviewer guidelines