Skip to content

Commit 68f397a

Browse files
authored
PR Query Editing - create a new chat session (#7844)
Fixes #7725
1 parent a257c86 commit 68f397a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/common/executeCommands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export namespace contexts {
2424

2525
export namespace commands {
2626
export const OPEN_CHAT = 'workbench.action.chat.open';
27+
export const NEW_CHAT = 'workbench.action.chat.newChat';
2728
export const CHAT_SETUP_ACTION_ID = 'workbench.action.chat.triggerSetup';
2829

2930
export const QUICK_CHAT_OPEN = 'workbench.action.quickchat.toggle';

src/common/settingsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,5 @@ async function openCopilotForQuery(currentQuery: string) {
169169
const chatMessage = vscode.l10n.t('I want to edit this GitHub search query: \n```\n{0}\n```\nOutput only one, minimally modified query in a codeblock.\nModify it so that it ', currentQuery);
170170

171171
// Open chat with the query pre-populated
172-
await vscode.commands.executeCommand(commands.OPEN_CHAT, { query: chatMessage, isPartialQuery: true, mode: 'ask' });
172+
await vscode.commands.executeCommand(commands.NEW_CHAT, { inputValue: chatMessage, isPartialQuery: true, agentMode: false });
173173
}

0 commit comments

Comments
 (0)