Skip to content

Commit 99b0114

Browse files
authored
Merge pull request #711 from Cprakhar/fix-github-copilot-support
fix(vscode-extension): correct command names for GitHub Copilot agent and chat extension
2 parents 589104e + b5a4004 commit 99b0114

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/bright-apes-stick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stagewise-vscode-extension": patch
3+
---
4+
5+
Update command names for GitHub Copilot agent and chat extension

apps/vscode-extension/src/utils/call-copilot-agent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export async function callCopilotAgent(request: {
66
images: string[];
77
}): Promise<void> {
88
const prompt = `${request.prompt}`;
9-
10-
await vscode.commands.executeCommand('workbench.action.chat.openAgent');
11-
await vscode.commands.executeCommand('workbench.action.chat.sendToNewChat', {
9+
10+
await vscode.commands.executeCommand('workbench.action.chat.openagent');
11+
await vscode.commands.executeCommand('workbench.action.chat.submit', {
1212
inputValue: prompt,
1313
});
1414
}

apps/vscode-extension/src/utils/is-copilot-chat-installed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as vscode from 'vscode';
55
* @returns True if the extension is installed, false otherwise.
66
*/
77
export function isCopilotChatInstalled(): boolean {
8-
const extensionId = 'gitHub.copilot-chat';
8+
const extensionId = 'github.copilot-chat';
99
const extension = vscode.extensions.getExtension(extensionId);
1010
return !!extension;
1111
}

0 commit comments

Comments
 (0)