-
Notifications
You must be signed in to change notification settings - Fork 711
Chat cleanup: remove participant and convert some tools to skills #8502
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -565,11 +565,13 @@ export class IssueFeatureRegistrar extends Disposable { | |
| */ | ||
| this.telemetry.sendTelemetryEvent('issue.chatSummarizeIssue'); | ||
| if (issue instanceof IssueModel) { | ||
| commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('@githubpr Summarize issue {0}/{1}#{2}', issue.remote.owner, issue.remote.repositoryName, issue.number) }); | ||
| commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('Summarize issue {0}/{1}#{2}', issue.remote.owner, issue.remote.repositoryName, issue.number) }); | ||
| commands.executeCommand(commands.SHOW_CHAT); | ||
| } else { | ||
| const pullRequestModel = issue.pullRequestModel; | ||
| const remote = pullRequestModel.githubRepository.remote; | ||
| commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('@githubpr Summarize pull request {0}/{1}#{2}', remote.owner, remote.repositoryName, pullRequestModel.number) }); | ||
| commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('Summarize pull request {0}/{1}#{2}', remote.owner, remote.repositoryName, pullRequestModel.number) }); | ||
| commands.executeCommand(commands.SHOW_CHAT); | ||
|
Comment on lines
+568
to
+574
|
||
| } | ||
| }), | ||
| ); | ||
|
|
@@ -582,7 +584,8 @@ export class IssueFeatureRegistrar extends Disposable { | |
| "issue.chatSuggestFix" : {} | ||
| */ | ||
| this.telemetry.sendTelemetryEvent('issue.chatSuggestFix'); | ||
| commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('@githubpr Find a fix for issue {0}/{1}#{2}', issue.remote.owner, issue.remote.repositoryName, issue.number) }); | ||
| commands.executeCommand(commands.NEW_CHAT, { inputValue: vscode.l10n.t('Find a fix for issue {0}/{1}#{2}', issue.remote.owner, issue.remote.repositoryName, issue.number) }); | ||
| commands.executeCommand(commands.SHOW_CHAT); | ||
| }), | ||
| ); | ||
| this._register(vscode.commands.registerCommand('issues.configureIssuesViewlet', async () => { | ||
|
|
||
This file was deleted.
This file was deleted.
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.
commands.SHOW_CHATis set to'workbench.panel.chat', which is a view/container id rather than a command id in VS Code. Executing it viavscode.commands.executeCommandis likely to fail at runtime. Prefer using the existingcommands.OPEN_CHAT(workbench.action.chat.open) or a dedicated focus command (e.g.commands.focusView('workbench.panel.chat')if that's the intent) instead of introducingSHOW_CHATas an executable command.