Skip to content

Commit 3f1e914

Browse files
Copilotalexr00
andcommitted
Update PR Query Editing action from 'Copilot' to 'AI' with sparkle icon
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 2f146fa commit 3f1e914

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/settingsUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function editQuery(namespace: string, queryName: string) {
5858
{ iconPath: new vscode.ThemeIcon('pencil'), label: vscode.l10n.t('Save edits'), alwaysShow: true },
5959
{ iconPath: new vscode.ThemeIcon('add'), label: vscode.l10n.t('Add new query'), alwaysShow: true },
6060
{ iconPath: new vscode.ThemeIcon('settings'), label: vscode.l10n.t('Edit in settings.json'), alwaysShow: true },
61-
{ iconPath: new vscode.ThemeIcon('copilot'), label: vscode.l10n.t('Edit with Copilot'), alwaysShow: true }
61+
{ iconPath: new vscode.ThemeIcon('sparkle'), label: vscode.l10n.t('Edit with AI'), alwaysShow: true }
6262
];
6363
inputBox.activeItems = [];
6464
inputBox.selectedItems = [];
@@ -91,7 +91,7 @@ export function editQuery(namespace: string, queryName: string) {
9191
inputBox.dispose();
9292
} else if (inputBox.selectedItems[0] === inputBox.items[3]) {
9393
inputBox.ignoreFocusOut = true;
94-
await openCopilotForQuery(inputBox.value);
94+
await openAIForQuery(inputBox.value);
9595
inputBox.busy = false;
9696
}
9797
});
@@ -165,7 +165,7 @@ async function openSettingsAtQuery(config: vscode.WorkspaceConfiguration, inspec
165165
}
166166
}
167167

168-
async function openCopilotForQuery(currentQuery: string) {
168+
async function openAIForQuery(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

0 commit comments

Comments
 (0)