Skip to content

Commit 761e28d

Browse files
committed
revert dts changes picked up
1 parent d021974 commit 761e28d

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ declare module 'vscode' {
103103
isConfirmed?: boolean;
104104
isComplete?: boolean;
105105
toolSpecificData?: ChatTerminalToolInvocationData;
106-
fromSubAgent?: boolean;
107106

108107
constructor(toolName: string, toolCallId: string, isError?: boolean);
109108
}
@@ -647,13 +646,7 @@ declare module 'vscode' {
647646
}
648647

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

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

Lines changed: 1 addition & 8 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;
@@ -221,10 +219,6 @@ declare module 'vscode' {
221219
chatSessionId?: string;
222220
chatInteractionId?: string;
223221
terminalCommand?: string;
224-
/**
225-
* Lets us add some nicer UI to toolcalls that came from a sub-agent, but in the long run, this should probably just be rendered in a similar way to thinking text + tool call groups
226-
*/
227-
fromSubAgent?: boolean;
228222
}
229223

230224
export interface LanguageModelToolInvocationPrepareOptions<T> {
@@ -239,13 +233,12 @@ declare module 'vscode' {
239233

240234
export interface PreparedToolInvocation {
241235
pastTenseMessage?: string | MarkdownString;
242-
presentation?: 'hidden' | 'hiddenAfterComplete' | undefined;
236+
presentation?: 'hidden' | undefined;
243237
}
244238

245239
export class ExtendedLanguageModelToolResult extends LanguageModelToolResult {
246240
toolResultMessage?: string | MarkdownString;
247241
toolResultDetails?: Array<Uri | Location>;
248-
toolMetadata?: unknown;
249242
}
250243

251244
// #region Chat participant detection

0 commit comments

Comments
 (0)