Skip to content

Commit b07d301

Browse files
committed
chatrequestturn2
1 parent 6f77a42 commit b07d301

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ declare module 'vscode' {
137137
/**
138138
* @hidden
139139
*/
140-
private constructor(prompt: string, command: string | undefined, references: ChatPromptReference[], participant: string, toolReferences: ChatLanguageModelToolReference[], editedFileEvents: ChatRequestEditedFileEvent[] | undefined);
140+
constructor(prompt: string, command: string | undefined, references: ChatPromptReference[], participant: string, toolReferences: ChatLanguageModelToolReference[], editedFileEvents: ChatRequestEditedFileEvent[] | undefined);
141141
}
142142

143143
export interface ChatParticipant {

src/github/copilotRemoteAgent.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -815,15 +815,13 @@ export class CopilotRemoteAgentManager extends Disposable {
815815

816816
const history: Array<vscode.ChatRequestTurn | vscode.ChatResponseTurn2> = [];
817817

818-
// Insert the initial user request with the PR title
819-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
820-
// @ts-ignore - Constructor will be made public
821-
const initialUserRequest = new vscode.ChatRequestTurn(
818+
const initialUserRequest = new vscode.ChatRequestTurn2(
822819
prTitle,
823820
undefined, // command
824821
[], // references
825822
'copilot-swe-agent',
826-
[] // toolReferences
823+
[], // toolReferences
824+
[]
827825
);
828826
history.push(initialUserRequest);
829827

0 commit comments

Comments
 (0)