-
Notifications
You must be signed in to change notification settings - Fork 37.3k
Add action to report GitHub Copilot Chat issues with output channel contents #287014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…t channel contents Co-authored-by: TylerLeonhardt <[email protected]>
Co-authored-by: TylerLeonhardt <[email protected]>
…enhance fallback message Co-authored-by: TylerLeonhardt <[email protected]>
… fallback message constant Co-authored-by: TylerLeonhardt <[email protected]>
|
@copilot if the GitHub Copilot Chat output channel is not available, can you attach the Window output channel? Also, can you allow the issue title and body (not data) to be passed in and plumbed through? |
…dy parameters Co-authored-by: TylerLeonhardt <[email protected]>
Done in commit 9b51a84:
Usage example: // With default behavior
await commandService.executeCommand('workbench.action.chat.reportIssueWithOutput');
// With custom title and body
await commandService.executeCommand('workbench.action.chat.reportIssueWithOutput', {
issueTitle: 'Custom Issue Title',
issueBody: 'Custom issue description'
}); |
| completionsRefreshTokenCommand: product.defaultChatAgent?.completionsRefreshTokenCommand ?? '', | ||
| chatRefreshTokenCommand: product.defaultChatAgent?.chatRefreshTokenCommand ?? '', | ||
| outputChannelId: 'GitHub Copilot Chat', | ||
| outputChannelUnavailableMessage: localize('chatOutputChannelUnavailable', "GitHub Copilot Chat output channel not available. Please ensure the GitHub Copilot Chat extension is active and try again. If the issue persists, you can manually include relevant information from the Output panel (View > Output > GitHub Copilot Chat)."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot This can be inlined in the Action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in commit fafa670 - moved the localize call inline in the Action.
Co-authored-by: TylerLeonhardt <[email protected]>
TylerLeonhardt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example issue: #287023
Adds
workbench.action.chat.reportIssueWithOutputcommand to capture output channel contents and pre-populate the issue reporter.Implementation
ReportChatIssueWithOutputActioninchatSetupContributions.tsITextModelService.createModelReference(channel.uri)to safely read output channel content via public APIrendererLog) if unavailableissueTitleandissueBodyparameters that are passed through to the issue reporterdatafield with output channel contents or inlined localized fallback messageChatContextKeys.enabledandChatContextKeys.Setup.installeddefaultChatconstantUsage
Opens issue reporter with:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.