Skip to content

Commit 433737e

Browse files
committed
nits
1 parent 3f1e914 commit 433737e

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

src/@types/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -646,13 +646,7 @@ declare module 'vscode' {
646646
}
647647

648648
export interface ChatRequest {
649-
readonly modeInstructions?: string;
650-
readonly modeInstructions2?: ChatRequestModeInstructions;
651-
}
652-
653-
export interface ChatRequestModeInstructions {
654-
readonly content: string;
655-
readonly toolReferences?: readonly ChatLanguageModelToolReference[];
656-
readonly metadata?: Record<string, boolean | string | number>;
649+
modeInstructions?: string;
650+
modeInstructionsToolReferences?: readonly ChatLanguageModelToolReference[];
657651
}
658652
}

src/@types/vscode.proposed.chatParticipantPrivate.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ declare module 'vscode' {
187187

188188
isQuotaExceeded?: boolean;
189189

190-
isRateLimited?: boolean;
191-
192190
level?: ChatErrorLevel;
193191

194192
code?: string;

src/common/settingsUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 openAIForQuery(inputBox.value);
94+
await openCopilotForQuery(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 openAIForQuery(currentQuery: string) {
168+
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

0 commit comments

Comments
 (0)