Skip to content

Commit 976fcb0

Browse files
Copilotalexr00
andcommitted
Initial planning for simplified checkout-pull-request URL format
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 56771ad commit 976fcb0

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,14 @@ declare module 'vscode' {
167167
constructor(value: ChatResponseDiffEntry[], title: string, readOnly?: boolean);
168168
}
169169

170-
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatPrepareToolInvocationPart | ChatToolInvocationPart | ChatResponseMultiDiffPart | ChatResponseThinkingProgressPart;
170+
export class ChatResponseExternalEditPart {
171+
uris: Uri[];
172+
callback: () => Thenable<unknown>;
173+
applied: Thenable<void>;
174+
constructor(uris: Uri[], callback: () => Thenable<unknown>);
175+
}
176+
177+
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatPrepareToolInvocationPart | ChatToolInvocationPart | ChatResponseMultiDiffPart | ChatResponseThinkingProgressPart | ChatResponseExternalEditPart;
171178
export class ChatResponseWarningPart {
172179
value: MarkdownString;
173180
constructor(value: string | MarkdownString);
@@ -301,6 +308,14 @@ declare module 'vscode' {
301308

302309
notebookEdit(target: Uri, isDone: true): void;
303310

311+
/**
312+
* Makes an external edit to one or more resources. Changes to the
313+
* resources made within the `callback` and before it resolves will be
314+
* tracked as agent edits. This can be used to track edits made from
315+
* external tools that don't generate simple {@link textEdit textEdits}.
316+
*/
317+
externalEdit<T>(target: Uri | Uri[], callback: () => Thenable<T>): Thenable<T>;
318+
304319
markdownWithVulnerabilities(value: string | MarkdownString, vulnerabilities: ChatVulnerability[]): void;
305320
codeblockUri(uri: Uri, isEdit?: boolean): void;
306321
push(part: ChatResponsePart | ChatResponseTextEditPart | ChatResponseWarningPart | ChatResponseProgressPart2): void;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ declare module 'vscode' {
8787
* Events for edited files in this session collected since the last request.
8888
*/
8989
readonly editedFileEvents?: ChatRequestEditedFileEvent[];
90+
91+
readonly isSubagent?: boolean;
9092
}
9193

9294
export enum ChatRequestEditedFileEventKind {

0 commit comments

Comments
 (0)