mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
parent
92592894f7
commit
abd11f059e
|
@ -122,7 +122,7 @@ class ChatAgentResponseStream {
|
|||
},
|
||||
push(part) {
|
||||
throwIfDone(this.push);
|
||||
const dto = typeConvert.ChatResponsePart.to(part);
|
||||
const dto = typeConvert.ChatResponsePart.to(part, that._commandsConverter, that._sessionDisposables);
|
||||
_report(dto);
|
||||
return this;
|
||||
},
|
||||
|
|
|
@ -109,8 +109,13 @@ class ChatVariableResolverResponseStream {
|
|||
},
|
||||
push(part) {
|
||||
throwIfDone(this.push);
|
||||
const dto = typeConvert.ChatResponsePart.to(part);
|
||||
_report(dto as IChatVariableResolverProgressDto);
|
||||
|
||||
if (part instanceof extHostTypes.ChatResponseReferencePart) {
|
||||
_report(typeConvert.ChatResponseReferencePart.to(part));
|
||||
} else if (part instanceof extHostTypes.ChatResponseProgressPart) {
|
||||
_report(typeConvert.ChatResponseProgressPart.to(part));
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2454,7 +2454,7 @@ export namespace ChatResponseReferencePart {
|
|||
|
||||
export namespace ChatResponsePart {
|
||||
|
||||
export function to(part: vscode.ChatResponsePart): extHostProtocol.IChatProgressDto {
|
||||
export function to(part: vscode.ChatResponsePart, commandsConverter: CommandsConverter, commandDisposables: DisposableStore): extHostProtocol.IChatProgressDto {
|
||||
if (part instanceof types.ChatResponseMarkdownPart) {
|
||||
return ChatResponseMarkdownPart.to(part);
|
||||
} else if (part instanceof types.ChatResponseAnchorPart) {
|
||||
|
@ -2465,6 +2465,8 @@ export namespace ChatResponsePart {
|
|||
return ChatResponseProgressPart.to(part);
|
||||
} else if (part instanceof types.ChatResponseFileTreePart) {
|
||||
return ChatResponseFilesPart.to(part);
|
||||
} else if (part instanceof types.ChatResponseCommandButtonPart) {
|
||||
return ChatResponseCommandButtonPart.to(part, commandsConverter, commandDisposables);
|
||||
}
|
||||
return {
|
||||
kind: 'content',
|
||||
|
|
Loading…
Reference in a new issue